mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-09-19 01:56:38 +08:00
optimize(utils): Reduce code indentation and improve readability (#496)
This commit is contained in:
parent
cd9d58d4de
commit
ad2f24707a
@ -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