From 44bd541d0002d8a7698b9f88bef8cc36493b38dc Mon Sep 17 00:00:00 2001 From: kuaifan Date: Mon, 20 Jul 2026 09:13:32 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=AA=E8=A1=A8=E7=9B=98=E5=BE=85?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E9=BB=98=E8=AE=A4=E5=B1=95=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/ai-kb/zh/howto/dashboard/collapse.md | 3 +-- resources/assets/js/pages/manage/dashboard.vue | 6 +----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/resources/ai-kb/zh/howto/dashboard/collapse.md b/resources/ai-kb/zh/howto/dashboard/collapse.md index e8c859009..441a4faab 100644 --- a/resources/ai-kb/zh/howto/dashboard/collapse.md +++ b/resources/ai-kb/zh/howto/dashboard/collapse.md @@ -29,9 +29,8 @@ last_verified: v1.8.69 ## 默认策略 仪表盘优先突出需要立即行动的任务: -- 有已超期或今日到期任务时,「待完成」默认收起。 - 有已超期或今日到期任务时,「待开始」默认收起。 -- 其他显示出来的分组默认展开。 +- 包括「待完成」在内的其他显示分组默认展开。 ## 记忆规则 用户手动打开或收起后,该选择保存在当前浏览器并在当天优先于默认策略。日期变化后重新按默认策略计算。清除浏览器缓存、更换浏览器或更换设备不会保留这份状态。 diff --git a/resources/assets/js/pages/manage/dashboard.vue b/resources/assets/js/pages/manage/dashboard.vue index 039e745fc..3d2a7dbb1 100644 --- a/resources/assets/js/pages/manage/dashboard.vue +++ b/resources/assets/js/pages/manage/dashboard.vue @@ -660,20 +660,16 @@ export default { /** * 策略快照(行动优先): - * - 显示的组默认展开;「待完成」量大且行动优先级低,超期或今日到期有数据时默认收起 + * - 显示的组默认展开;超期或今日到期有数据时,「待开始」默认收起 */ takeSnapshot() { const counts = { overdue: this.dashboardTask.overdue_count, today: this.dashboardTask.today_count, - todo: this.dashboardTask.todo_count, upcoming: this.upcomingTask.count, assist: this.assistTask.length, }; const collapsed = []; - if (counts.todo > 0 && (counts.overdue > 0 || counts.today > 0)) { - collapsed.push('todo'); - } if (counts.upcoming > 0 && (counts.overdue > 0 || counts.today > 0)) { collapsed.push('upcoming'); }