mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-09-28 22:26:42 +08:00
optimize(utils): Reduce code indentation and improve readability
This commit is contained in:
parent
cd9d58d4de
commit
ef16ce1261
@ -12,7 +12,10 @@ export function setupAppVersionNotification() {
|
|||||||
|
|
||||||
const buildTime = await getHtmlBuildTime();
|
const buildTime = await getHtmlBuildTime();
|
||||||
|
|
||||||
if (buildTime !== BUILD_TIME) {
|
if (buildTime === BUILD_TIME) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
isShow = true;
|
isShow = true;
|
||||||
|
|
||||||
const n = window.$notification?.create({
|
const n = window.$notification?.create({
|
||||||
@ -45,7 +48,6 @@ export function setupAppVersionNotification() {
|
|||||||
isShow = false;
|
isShow = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user