From 124a4b101a9102bc43c044b64a38fb8fdd021943 Mon Sep 17 00:00:00 2001 From: cfdaily Date: Wed, 20 May 2026 23:06:51 +0800 Subject: [PATCH] auto-sync: 2026-05-20 23:06:51 --- src/frontend/src/store.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/frontend/src/store.ts b/src/frontend/src/store.ts index 7fbfc8b..07a9bea 100644 --- a/src/frontend/src/store.ts +++ b/src/frontend/src/store.ts @@ -19,6 +19,19 @@ import { type TaskNode, } from './api'; +// ── SSE Notification 类型 ── +interface NotifItem { + id: string; + type: 'info' | 'warning' | 'success' | 'error'; + title: string; + message: string; + time: string; + read: boolean; + source: 'mail' | 'event'; + taskId?: string; + projectId?: string; +} + // ── v2.6 V2Task 类型(对齐后端 tasks 表)── export interface V2Task { id: string; @@ -351,6 +364,7 @@ export const useStore = create((set, get) => ({ // Mail mails: [], mailUnread: 0, + sseEvents: [], officialsData: null, agentsStatusData: null, morningBrief: null,