From 3cb273faeae632a2ce6eca6e2e9891a784ffc0d9 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Fri, 17 May 2024 14:27:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AF=B9=E8=AF=9D=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=8E=86=E5=8F=B2=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/views/chat/pc/index.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ui/src/views/chat/pc/index.vue b/ui/src/views/chat/pc/index.vue index 6060e5c64..84023faf5 100644 --- a/ui/src/views/chat/pc/index.vue +++ b/ui/src/views/chat/pc/index.vue @@ -72,7 +72,7 @@ const paginationConfig = reactive({ }) const currentRecordList = ref([]) -const currentChatId = ref('0') // 当前历史记录Id 默认为'0' +const currentChatId = ref('new') // 当前历史记录Id 默认为'new' function getAccessToken(token: string) { application @@ -128,7 +128,11 @@ function getChatRecord() { .asyncChatRecordLog(applicationDetail.value.id, currentChatId.value, paginationConfig, loading) .then((res: any) => { paginationConfig.total = res.data.total - currentRecordList.value = [...currentRecordList.value, ...res.data.records] + const list = res.data.records + list.map((v: any) => { + v['write_ed'] = true + }) + currentRecordList.value = [...currentRecordList.value, ...list] }) } const clickListHandle = (item: any) => {