fix: 修复卸载请求中的应用名称查找逻辑

更新下载详情组件样式以支持自定义滚动条
This commit is contained in:
Elysia
2026-01-31 00:53:40 +08:00
parent b4ef653299
commit 97997182bc
4 changed files with 7 additions and 9 deletions

View File

@@ -301,7 +301,11 @@ const refreshInstalledApps = async () => {
};
const requestUninstall = (app) => {
const target = apps.value.find(a => a.Pkgname === app.pkgname);
let target = null;
if (!app?.Pkgname) // TODO: 很丑,之后统一变量名
target = apps.value.find(a => a.Pkgname === app.pkgname);
else
target = app;
uninstallTargetApp.value = target;
showUninstallModal.value = true;
};