From bd7f07f1fbad56e3318ab5eadd1a9afd752474d5 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud <79562285+wangdan-fit2cloud@users.noreply.github.com> Date: Thu, 25 Apr 2024 03:55:12 -0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=AF=B9=E8=AF=9DId?= =?UTF-8?q?=E7=BC=BA=E5=A4=B1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/components/ai-chat/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/src/components/ai-chat/index.vue b/ui/src/components/ai-chat/index.vue index 92e167c40..8eb60639e 100644 --- a/ui/src/components/ai-chat/index.vue +++ b/ui/src/components/ai-chat/index.vue @@ -379,6 +379,7 @@ const getWrite = (chat: any, reader: any, stream: boolean) => { if (split) { for (const index in split) { const chunk = JSON?.parse(split[index].replace('data:', '')) + chat.chat_id = chunk.chat_id chat.record_id = chunk.id const content = chunk?.content if (content) { @@ -509,7 +510,7 @@ function regenerationChart(item: chatType) { function getSourceDetail(row: any) { logApi - .getRecordDetail(id || props.appId, chartOpenId.value, row.record_id, loading) + .getRecordDetail(id || props.appId, row.chat_id, row.record_id, loading) .then((res) => { const exclude_keys = ['answer_text', 'id'] Object.keys(res.data).forEach((key) => {