From 912c7fb0795a58794d06222c1480b7aa1ef9f01a Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 12 May 2023 16:41:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4v-model?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/chat.vue | 42 ++++++++-------------------------- src/components/chatInput.vue | 24 +++++++++++++++++-- src/components/settings.vue | 7 ++++-- src/components/thinkingBar.vue | 1 - 4 files changed, 37 insertions(+), 37 deletions(-) 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 @@