fix: 修复确认卸载界面应用名称显示

This commit is contained in:
Elysia
2026-01-31 00:17:07 +08:00
parent b9325db8b0
commit b4ef653299
2 changed files with 10 additions and 9 deletions

View File

@@ -258,7 +258,8 @@ const toggleAllUpgrades = () => {
const upgradeSingleApp = (app) => {
if (!app?.pkgname) return;
handleUpgrade(app.pkgname, app.newVersion || '');
const target = apps.value.find(a => a.Pkgname === app.pkgname);
handleUpgrade(target);
};
const upgradeSelectedApps = () => {
@@ -300,7 +301,8 @@ const refreshInstalledApps = async () => {
};
const requestUninstall = (app) => {
uninstallTargetApp.value = app;
const target = apps.value.find(a => a.Pkgname === app.pkgname);
uninstallTargetApp.value = target;
showUninstallModal.value = true;
};