From eaa34ee1f8fbb868a1e731d9d90811bb71d46b8c Mon Sep 17 00:00:00 2001 From: cfdaily Date: Wed, 20 May 2026 14:01:42 +0800 Subject: [PATCH] auto-sync: 2026-05-20 14:01:42 --- src/frontend/src/store.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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 {