mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-08-09 22:04:06 +08:00
fix(app): 修复应用计数统计问题
- 将应用总数统计从 apps.value.length 改为 baseApps.value.length - 确保分类统计基于正确的基础应用数据 - 解决了应用过滤后计数不准确的问题
This commit is contained in:
+1
-1
@@ -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]++;
|
||||
|
||||
Reference in New Issue
Block a user