diff --git a/src/components/chat.vue b/src/components/chat.vue index e84b25f..2985414 100644 --- a/src/components/chat.vue +++ b/src/components/chat.vue @@ -1,6 +1,6 @@ @@ -33,39 +36,14 @@ export default { }, data() { return { - loading: true + loading: false, + inputText: "", } }, methods: { - handleResize() { - if (window.innerWidth <= 700) { - this.$nextTick(() => { - document.querySelectorAll('.chat-content')[0].style.height = '93%'; - this.buttonStatus = false - const textareaMsg = document.getElementById("textareaMsg"); - textareaMsg.style.marginLeft = "0px"; - this.personInfoSpan = [14, 0, 10]; - const isMobile = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent) - if (isMobile) { - document.querySelectorAll('.chatInputs')[0].style.margin = '0%'; - } else { - document.querySelectorAll('.chatInputs')[0].style.margin = '3%'; - } - }); - } else { - this.$nextTick(() => { - document.querySelectorAll('.chat-content')[0].style.height = '88%'; - this.buttonStatus = true - this.personInfoSpan = [1, 17, 6]; - }); - } - }, - }, - created() { - window.addEventListener('resize', this.handleResize) - }, - unmounted() { - window.removeEventListener('resize', this.handleResize) + handleSend() { + + } } } diff --git a/src/components/chatInput.vue b/src/components/chatInput.vue index 5e6464c..00c7614 100644 --- a/src/components/chatInput.vue +++ b/src/components/chatInput.vue @@ -1,14 +1,21 @@