From c7d73bf1f4eb0d2fa956fd67dc4427f085c1485e Mon Sep 17 00:00:00 2001 From: Dawn <2439646234@qq.com> Date: Tue, 4 Nov 2025 15:41:51 +0800 Subject: [PATCH] fix(chat): :bug: fix unread count not initialized --- src/stores/chat.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/stores/chat.ts b/src/stores/chat.ts index d579537e..57b52a1d 100644 --- a/src/stores/chat.ts +++ b/src/stores/chat.ts @@ -336,6 +336,9 @@ export const useChatStore = defineStore( } sortAndUniqueSessionList() + + // 获取会话列表后,更新全局未读计数以确保同步 + updateTotalUnreadCount() } catch (e) { console.error('获取会话列表失败11:', e) sessionOptions.isLoading = false