mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-04-26 01:10:16 +08:00
refactor: 简化安装完成回调函数的条件判断
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user