feat: 修改应用信息界面,对于已安装应用,安装按钮变为打开按钮,并添加卸载按钮

This commit is contained in:
2026-02-27 23:03:10 +08:00
parent 3a9c9dda22
commit 6ea628d869
4 changed files with 42 additions and 26 deletions

View File

@@ -633,8 +633,8 @@ const onUninstallSuccess = () => {
}
};
const installCompleteCallback = () => {
if (currentApp.value) {
const installCompleteCallback = (pkgname?: string) => {
if (currentApp.value && (!pkgname || currentApp.value.pkgname === pkgname)) {
checkAppInstalled(currentApp.value);
}
};