From 675c754adace9bfb1ad6a84bc1721718d6125dd3 Mon Sep 17 00:00:00 2001 From: cfdaily Date: Sun, 17 May 2026 11:25:01 +0800 Subject: [PATCH] auto-sync: 2026-05-17 11:25:01 --- src/frontend/src/store.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/frontend/src/store.ts b/src/frontend/src/store.ts index dbc5e87..4e601d6 100644 --- a/src/frontend/src/store.ts +++ b/src/frontend/src/store.ts @@ -324,6 +324,10 @@ interface AppStore { morningBrief: MorningBrief | null; subConfig: SubConfig | null; + // v2.6: 多项目 + projects: Record; + selectedProjectId: string | null; + // UI State activeTab: TabKey; edictFilter: 'active' | 'archived' | 'all'; @@ -348,10 +352,12 @@ interface AppStore { setSelectedOfficial: (id: string | null) => void; setModalTaskId: (id: string | null) => void; setCountdown: (n: number) => void; + setSelectedProjectId: (pid: string | null) => void; toast: (msg: string, type?: 'ok' | 'err') => void; // Data fetching loadLive: () => Promise; + loadProjects: () => Promise; loadAgentConfig: () => Promise; loadOfficials: () => Promise; loadAgentsStatus: () => Promise;