diff --git a/src/frontend/src/store.ts b/src/frontend/src/store.ts index 2879c65..8370c73 100644 --- a/src/frontend/src/store.ts +++ b/src/frontend/src/store.ts @@ -414,14 +414,12 @@ export const useStore = create((set, get) => ({ const pid = get().selectedProjectId; set({ v2tasksLoading: true }); try { - if (!pid || pid === '__general__') { - // 全部/一般任务模式:聚合项目 - const isGeneral = pid === '__general__'; + if (!pid) { + // 全部任务模式:聚合所有项目(排除 _mail) const projRes = await fetch('/api/projects'); if (!projRes.ok) { set({ v2tasks: [], v2tasksLoading: false }); return; } const projData = await projRes.json(); - let allPids = Object.keys(projData.projects || {}); - if (isGeneral) allPids = allPids.filter(p => !p.startsWith('e2e-')); + const allPids = Object.keys(projData.projects || {}).filter(p => !p.startsWith('_')); const allTasks: any[] = []; for (const p of allPids) { try {