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;