refactor: 简化安装完成回调函数的条件判断

This commit is contained in:
2026-03-24 20:50:38 +08:00
parent 7ff079276e
commit 7b71522afb

View File

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