fix(app): 修复应用计数统计问题

- 将应用总数统计从 apps.value.length 改为 baseApps.value.length
- 确保分类统计基于正确的基础应用数据
- 解决了应用过滤后计数不准确的问题
This commit is contained in:
xiyidaiwa
2026-07-23 18:41:19 +08:00
parent 3d28010797
commit 910aec6cce
+1 -1
View File
@@ -613,7 +613,7 @@ const categoryCounts = computed(() => {
return { ...tabCounts, all: allCounts.all };
}
const counts: Record<string, number> = { all: apps.value.length };
const counts: Record<string, number> = { all: baseApps.value.length };
sourceApps.forEach((app) => {
if (!counts[app.category]) counts[app.category] = 0;
counts[app.category]++;