From 5cedb0440d326690473b96a7d1a9d713b77093e5 Mon Sep 17 00:00:00 2001 From: cfdaily Date: Mon, 18 May 2026 12:56:40 +0800 Subject: [PATCH] auto-sync: 2026-05-18 12:56:40 --- src/frontend/src/App.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/frontend/src/App.tsx b/src/frontend/src/App.tsx index 1079d13..be27815 100644 --- a/src/frontend/src/App.tsx +++ b/src/frontend/src/App.tsx @@ -47,6 +47,10 @@ export default function App() { const executing = tasks.filter((t) => isEdict(t) && t.state === 'executing').length; return executing + '活跃'; } + if (key === 'mail') { + const unread = useStore.getState().mailUnread; + return unread > 0 ? String(unread) : ''; + } return ''; };