From e83afe74c5f6685699c2064f414494e06fc51663 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Thu, 18 Jan 2024 19:15:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BA=94=E7=94=A8=E5=AF=B9=E8=AF=9D,?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=AF=B9=E8=AF=9D=E8=AF=A6=E6=83=85=E6=97=B6?= =?UTF-8?q?=E8=B5=8B=E5=80=BC=E4=B8=8Ebuffer=E7=BC=93=E5=AD=98=E5=86=B2?= =?UTF-8?q?=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/components/ai-chat/index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/src/components/ai-chat/index.vue b/ui/src/components/ai-chat/index.vue index 7b562983e..6de97c4d4 100644 --- a/ui/src/components/ai-chat/index.vue +++ b/ui/src/components/ai-chat/index.vue @@ -424,8 +424,11 @@ function regenerationChart(item: chatType) { function getSourceDetail(row: any) { logApi.getRecordDetail(id, chartOpenId.value, row.record_id, loading).then((res) => { + const exclude_keys = ['answer_text', 'id'] Object.keys(res.data).forEach((key) => { - row[key] = res.data[key] + if (!exclude_keys.includes(key)) { + row[key] = res.data[key] + } }) }) return true