Skip to content

Commit 18d404c

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

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 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
@@ -278,6 +278,7 @@ const errorWrite = (chat: any, message?: string) => {
278278
// 保存上传文件列表
279279
280280
function chatMessage(chat?: any, problem?: string, re_chat?: boolean, other_params_data?: any) {
281+
console.log(other_params_data)
281282
loading.value = true
282283
if (!chat) {
283284
chat = reactive({
@@ -317,7 +318,7 @@ function chatMessage(chat?: any, problem?: string, re_chat?: boolean, other_para
317318
ChatManagement.write(chat.id)
318319
}
319320
if (!chartOpenId.value) {
320-
getChartOpenId(chat).catch(() => {
321+
getChartOpenId(chat, problem, re_chat, other_params_data).catch(() => {
321322
errorWrite(chat)
322323
})
323324
} else {

0 commit comments

Comments
 (0)