mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-04-26 09:20:18 +08:00
refactor: 简化安装完成回调函数的条件判断
This commit is contained in:
@@ -831,12 +831,8 @@ const onUninstallSuccess = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const installCompleteCallback = (pkgname?: string, status?: string) => {
|
const installCompleteCallback = (pkgname?: string) => {
|
||||||
if (
|
if (currentApp.value && (!pkgname || currentApp.value.pkgname === pkgname)) {
|
||||||
currentApp.value &&
|
|
||||||
(!pkgname || currentApp.value.pkgname === pkgname) &&
|
|
||||||
status === "completed"
|
|
||||||
) {
|
|
||||||
checkAppInstalled(currentApp.value);
|
checkAppInstalled(currentApp.value);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user