From 8f1489ad6de206361c9425be7889c142e1469ece Mon Sep 17 00:00:00 2001 From: huangzhe Date: Wed, 6 Aug 2025 20:40:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=20messagestatus=20?= =?UTF-8?q?=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/AI-new/components/message.vue | 6 ++- src/views/AI-new/index.vue | 21 ++++------- .../AI-new/views/productKnowledge/index.vue | 37 +++++-------------- .../AI-new/views/productRecommend/index.vue | 37 +++++-------------- 4 files changed, 31 insertions(+), 70 deletions(-) diff --git a/src/views/AI-new/components/message.vue b/src/views/AI-new/components/message.vue index 1d9b9cc..0752abf 100644 --- a/src/views/AI-new/components/message.vue +++ b/src/views/AI-new/components/message.vue @@ -29,7 +29,7 @@
-
+
@@ -66,6 +66,10 @@ export default { isDeep: { type: Boolean, default: false + }, + messageStatus: { + type: String, + default: 'stop' } }, data() { diff --git a/src/views/AI-new/index.vue b/src/views/AI-new/index.vue index 34172a2..59ed660 100644 --- a/src/views/AI-new/index.vue +++ b/src/views/AI-new/index.vue @@ -8,15 +8,9 @@
- +
HI,我是长生产品助手,可以为你推荐产品、答疑解惑,请点击以下功能体检。
@@ -32,7 +26,8 @@ + :autoScrollEnabled.sync="autoScrollEnabled" @getIsThink="getIsThink" action="normal_chat" + @initBotMessage="initBotMessage" />
@@ -138,9 +133,9 @@ export default { }, initBotMessage() { this.messages = [] - }, - reloadMessage({message,index}){ - this.$refs.chatMessage.reloadMessage({message,index}) + }, + reloadMessage({ message, index }) { + this.$refs.chatMessage.reloadMessage({ message, index }) } }, watch: { diff --git a/src/views/AI-new/views/productKnowledge/index.vue b/src/views/AI-new/views/productKnowledge/index.vue index 3797a51..43d42da 100644 --- a/src/views/AI-new/views/productKnowledge/index.vue +++ b/src/views/AI-new/views/productKnowledge/index.vue @@ -1,26 +1,15 @@ diff --git a/src/views/AI-new/views/productRecommend/index.vue b/src/views/AI-new/views/productRecommend/index.vue index e1b91b3..108bfdb 100644 --- a/src/views/AI-new/views/productRecommend/index.vue +++ b/src/views/AI-new/views/productRecommend/index.vue @@ -1,26 +1,15 @@