mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-04-26 09:20:18 +08:00
fix: 修复卸载请求中的应用名称查找逻辑
更新下载详情组件样式以支持自定义滚动条
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user