From 67c94d814cae9e7880c46cb7382b5cdae32cc80c Mon Sep 17 00:00:00 2001
From: lifizer <913626195@qq.com>
Date: Mon, 7 Apr 2025 22:57:59 +0800
Subject: [PATCH] =?UTF-8?q?Fix(AI):[#3600]=E9=94=AE=E7=9B=98=E5=BC=B9?=
=?UTF-8?q?=E5=87=BA=E5=90=8E=EF=BC=8C=E5=BC=80=E5=90=AF=E6=96=B0=E5=AF=B9?=
=?UTF-8?q?=E8=AF=9D=EF=BC=8C=E5=8F=8A=E9=94=AE=E7=9B=98=E5=BA=95=E9=83=A8?=
=?UTF-8?q?=E4=BC=9A=E8=A2=AB=E9=81=AE=E6=8C=A1=E4=B8=80=E9=83=A8=E5=88=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
aiChat/components/bottomSend.vue | 10 ++++++++--
aiChat/mixins/chatMixins.js | 4 ++++
aiChat/views/history.vue | 8 +++++++-
aiChat/views/index.vue | 20 +++++++++++++-------
assets/css/aiChat.less | 7 +++++--
5 files changed, 37 insertions(+), 12 deletions(-)
diff --git a/aiChat/components/bottomSend.vue b/aiChat/components/bottomSend.vue
index 71537f0..280312a 100644
--- a/aiChat/components/bottomSend.vue
+++ b/aiChat/components/bottomSend.vue
@@ -141,10 +141,16 @@ export default {
},
methods: {
promptInputFocusHandle() {
- this.inputOnFocus = true
+ setTimeout(() => {
+ this.inputOnFocus = true
+ this.$emit('focus', 1)
+ }, 200)
},
promptInputBlurHandle() {
- this.inputOnFocus = false
+ setTimeout(() => {
+ this.inputOnFocus = false
+ this.$emit('focus', 0)
+ }, 200)
},
toggleInputModel() {
if (!this.token) {
diff --git a/aiChat/mixins/chatMixins.js b/aiChat/mixins/chatMixins.js
index da26fcc..4183d2c 100644
--- a/aiChat/mixins/chatMixins.js
+++ b/aiChat/mixins/chatMixins.js
@@ -21,6 +21,7 @@ export const chatMixins = {
statusBarHeight: 20,
fileHttpStr: Object.freeze(VUE_APP_API_URL + settings.sysPrefix),
optionsFrom: '',
+ onFocus: false,
loading: false,
chatNumber: '',
infoResData: {},
@@ -86,6 +87,9 @@ export const chatMixins = {
createdCallbak() {
console.log('页面初始话回调')
},
+ inputFocusHandle(value) {
+ this.onFocus = value === 1
+ },
historyViewHandle() {
console.log(this.$refs.historyView)
this.$refs.historyView.showView()
diff --git a/aiChat/views/history.vue b/aiChat/views/history.vue
index 75d68a2..93f38e9 100644
--- a/aiChat/views/history.vue
+++ b/aiChat/views/history.vue
@@ -130,7 +130,12 @@
-
+
-
+