Skip to content

Commit 4f22d0c

Browse files
committed
fix: Fix new chat cannot load document_list
--bug=1051402 --user=刘瑞斌 【github#2008】【应用编排】应用演示页面新建对话后再次上传文档,无法读取文档内容 https://www.tapd.cn/57709429/s/1648617
1 parent cc7990f commit 4f22d0c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui/src/components/ai-chat/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@ const openChatId: () => Promise<string> = () => {
185185
/**
186186
* 对话
187187
*/
188-
function getChartOpenId(chat?: any) {
188+
function getChartOpenId(chat?: any, problem?: string, re_chat?: boolean, other_params_data?: any) {
189189
return openChatId().then(() => {
190-
chatMessage(chat)
190+
chatMessage(chat, problem, re_chat, other_params_data)
191191
})
192192
}
193193
@@ -317,7 +317,7 @@ function chatMessage(chat?: any, problem?: string, re_chat?: boolean, other_para
317317
ChatManagement.write(chat.id)
318318
}
319319
if (!chartOpenId.value) {
320-
getChartOpenId(chat).catch(() => {
320+
getChartOpenId(chat, problem, re_chat, other_params_data).catch(() => {
321321
errorWrite(chat)
322322
})
323323
} else {

0 commit comments

Comments
 (0)