From ecd00f11e4442a4c6a66701b1fb2c7dc89c923a4 Mon Sep 17 00:00:00 2001 From: cfdaily Date: Fri, 22 May 2026 13:11:31 +0800 Subject: [PATCH] auto-sync: 2026-05-22 13:11:31 --- src/frontend/src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/App.tsx b/src/frontend/src/App.tsx index b4b55f2..c860483 100644 --- a/src/frontend/src/App.tsx +++ b/src/frontend/src/App.tsx @@ -79,7 +79,7 @@ export default function App() { return executing + '活跃'; } if (key === 'mail') { - const unread = ((useStore.getState().sseEvents || []) as any[]).filter((n: any) => !n.read).length; + const unread = useStore.getState().mailUnread || 0; return unread > 0 ? String(unread) : ''; } return '';