From ec3ea9a36d17ac430ca2721f0c6fa7df9c749c00 Mon Sep 17 00:00:00 2001 From: cfdaily Date: Wed, 20 May 2026 13:21:58 +0800 Subject: [PATCH] auto-sync: 2026-05-20 13:21:58 --- src/frontend/src/store.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/frontend/src/store.ts b/src/frontend/src/store.ts index 8c963e3..bd36787 100644 --- a/src/frontend/src/store.ts +++ b/src/frontend/src/store.ts @@ -414,12 +414,14 @@ export const useStore = create((set, get) => ({ const pid = get().selectedProjectId; set({ v2tasksLoading: true }); try { - if (!pid) { - // 全部任务模式:聚合所有项目 + if (!pid || pid === '__general__') { + // 全部/一般任务模式:聚合项目 + const isGeneral = pid === '__general__'; const projRes = await fetch('/api/projects'); if (!projRes.ok) { set({ v2tasks: [], v2tasksLoading: false }); return; } const projData = await projRes.json(); - const allPids = Object.keys(projData.projects || {}); + let allPids = Object.keys(projData.projects || {}); + if (isGeneral) allPids = allPids.filter(p => !p.startsWith('e2e-')); const allTasks: any[] = []; for (const p of allPids) { try {