fix: PR 审查真实缺陷修复(图标错位/定时器清理/并发/统计同步)

- AppDetailModal: iconPath 改用 viewingOrigin 动态计算,修复合并源切换时图标与数据错位
- App.vue: onUnmounted 清理 saveBoundsTimer 防抖定时器,避免组件销毁后悬空 IPC 调用
- App.vue: loadHomeListEntries 串行 for-of 改 Promise.all 并发拉取,缩短首页入口加载
- InstalledAppsModal: 顶部统计徽章基于搜索过滤结果实时计算,修复搜索时数字不同步

(审查误报项已核实未改: fetchAppFromStore 已有 encodeURIComponent + AbortSignal)
This commit is contained in:
xiyidaiwa
2026-08-11 00:20:19 +08:00
parent 44fa822146
commit 8888afd4f5
3 changed files with 31 additions and 14 deletions
+3 -1
View File
@@ -783,8 +783,10 @@ const installBtnText = computed(() => {
const iconPath = computed(() => {
if (!displayApp.value) return "";
const arch = window.apm_store.arch || "amd64";
// 切换来源标签时(viewingOrigin)需动态重算架构路径,确保图标/资源跟随当前查看来源,
// 而非固定使用合并应用原始 origin,避免切换源时图标与数据错位。
const finalArch =
displayApp.value.origin === "spark" ? `${arch}-store` : `${arch}-apm`;
viewingOrigin.value === "spark" ? `${arch}-store` : `${arch}-apm`;
return `${APM_STORE_BASE_URL}/${finalArch}/${displayApp.value.category}/${displayApp.value.pkgname}/icon.png`;
});