From d22f05f0feaf2353595a4a8206d0666e4d1cf5f2 Mon Sep 17 00:00:00 2001 From: Sepcnt Date: Sat, 4 Mar 2023 20:53:38 +0800 Subject: [PATCH] Update List.vue --- src/views/chat/layout/sider/List.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/chat/layout/sider/List.vue b/src/views/chat/layout/sider/List.vue index 4aaa85b..529293a 100644 --- a/src/views/chat/layout/sider/List.vue +++ b/src/views/chat/layout/sider/List.vue @@ -15,7 +15,9 @@ const dataSources = computed(() => chatStore.history) async function handleSelect({ uuid }: Chat.History) { if (isActive(uuid)) return - + + if(chatStore.active) + chatStore.updateHistory(chatStore.active, { isEdit: false }) await chatStore.setActive(uuid) if (isMobile.value)