auto-sync: 2026-05-20 23:23:44

This commit is contained in:
cfdaily
2026-05-20 23:23:44 +08:00
parent 64015d814e
commit 6aea9dd97c
+2 -2
View File
@@ -34,7 +34,7 @@ export default function App() {
const selectedProjectId = useStore((s) => s.selectedProjectId);
const setSelectedProjectId = useStore((s) => s.setSelectedProjectId);
const v2tasksLoading = useStore((s) => s.v2tasksLoading);
const mailUnread = useStore((s) => s.mailUnread);
const notifUnread = ((useStore((s) => s.sseEvents) || []) as any[]).filter((n: any) => !n.read).length;
useEffect(() => {
startPolling();
@@ -79,7 +79,7 @@ export default function App() {
return executing + '活跃';
}
if (key === 'mail') {
const unread = useStore.getState().mailUnread;
const unread = ((useStore.getState().sseEvents || []) as any[]).filter((n: any) => !n.read).length;
return unread > 0 ? String(unread) : '';
}
return '';