From 27a8faccd14121d38d68e1418adfc49bf03b36d0 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Tue, 21 Jan 2025 15:00:39 +0800 Subject: [PATCH] fix: Fix new chat cannot load document_list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1051402 --user=刘瑞斌 【github#2008】【应用编排】应用演示页面新建对话后再次上传文档,无法读取文档内容 https://www.tapd.cn/57709429/s/1648617 --- ui/src/components/ai-chat/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/src/components/ai-chat/index.vue b/ui/src/components/ai-chat/index.vue index 568911cd8..7c800a2d3 100644 --- a/ui/src/components/ai-chat/index.vue +++ b/ui/src/components/ai-chat/index.vue @@ -185,9 +185,9 @@ const openChatId: () => Promise = () => { /** * 对话 */ -function getChartOpenId(chat?: any) { +function getChartOpenId(chat?: any, problem?: string, re_chat?: boolean, other_params_data?: any) { return openChatId().then(() => { - chatMessage(chat) + chatMessage(chat, problem, re_chat, other_params_data) }) } @@ -317,7 +317,7 @@ function chatMessage(chat?: any, problem?: string, re_chat?: boolean, other_para ChatManagement.write(chat.id) } if (!chartOpenId.value) { - getChartOpenId(chat).catch(() => { + getChartOpenId(chat, problem, re_chat, other_params_data).catch(() => { errorWrite(chat) }) } else {