From 3dc9b166f29e9fa5083a411308deb12b568ab392 Mon Sep 17 00:00:00 2001
From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com>
Date: Wed, 17 Apr 2024 13:05:19 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E3=80=90=E5=BA=94=E7=94=A8=E3=80=91?=
=?UTF-8?q?=E9=97=AE=E7=AD=94=E9=A1=B5=E9=9D=A2=E5=9C=A8=E5=9B=9E=E7=AD=94?=
=?UTF-8?q?=E4=B8=AD...=E6=97=B6=EF=BC=8C=E7=82=B9=E5=87=BB=E5=81=9C?=
=?UTF-8?q?=E6=AD=A2=E5=9B=9E=E7=AD=94=E4=B8=8D=E7=94=9F=E6=95=88=20#109?=
=?UTF-8?q?=20(#136)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ui/src/components/ai-chat/index.vue | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/ui/src/components/ai-chat/index.vue b/ui/src/components/ai-chat/index.vue
index b716686b9..329781829 100644
--- a/ui/src/components/ai-chat/index.vue
+++ b/ui/src/components/ai-chat/index.vue
@@ -62,6 +62,9 @@
>
抱歉,没有查找到相关内容,请重新描述您的问题或提供更多信息。
+
+ 已停止回答
+
回答中
@@ -434,6 +437,8 @@ function chatMessage(chat?: any, problem?: string, re_chat?: boolean) {
vote_status: '-1'
})
chatList.value.push(chat)
+ ChatManagement.addChatRecord(chat, 50, loading)
+ ChatManagement.write(chat.id)
inputValue.value = ''
nextTick(() => {
// 将滚动条滚动到最下面
@@ -471,8 +476,6 @@ function chatMessage(chat?: any, problem?: string, re_chat?: boolean) {
// 将滚动条滚动到最下面
scrollDiv.value.setScrollTop(getMaxHeight())
})
- ChatManagement.addChatRecord(chat, 50, loading)
- ChatManagement.write(chat.id)
const reader = response.body.getReader()
// 处理流数据
const write = getWrite(