From 93d40b42e0613b2f8f5ab07826d12f7476f11833 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Mon, 2 Dec 2024 11:13:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=8D=A2=E4=B8=AA?= =?UTF-8?q?=E7=AD=94=E6=A1=88=E6=95=B0=E6=8D=AE=E7=B1=BB=E5=9E=8B=E9=94=99?= =?UTF-8?q?=E8=AF=AF=20(#1728)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/ai-chat/component/answer-content/index.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/src/components/ai-chat/component/answer-content/index.vue b/ui/src/components/ai-chat/component/answer-content/index.vue index 532869633..a0f1ee0d4 100644 --- a/ui/src/components/ai-chat/component/answer-content/index.vue +++ b/ui/src/components/ai-chat/component/answer-content/index.vue @@ -61,14 +61,14 @@ const props = defineProps<{ const chatMessage = (question: string, type: 'old' | 'new', other_params_data?: any) => { if (type === 'old') { - add_answer_text_list( props.chatRecord.answer_text_list) + add_answer_text_list(props.chatRecord.answer_text_list) props.sendMessage(question, other_params_data, props.chatRecord) props.chatManagement.write(props.chatRecord.id) } else { props.sendMessage(question, other_params_data) } } -const add_answer_text_list=(answer_text_list:Array)=>{ +const add_answer_text_list = (answer_text_list: Array) => { answer_text_list.push('') } @@ -82,8 +82,8 @@ function showSource(row: any) { } return false } -const regenerationChart = (question: string) => { - props.sendMessage(question, { rechat: true }) +const regenerationChart = (chat: chatType) => { + props.sendMessage(chat.problem_text, { rechat: true }) } const stopChat = (chat: chatType) => { props.chatManagement.stop(chat.id)