mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-11-08 09:43:43 +08:00
optimize(utils): Reduce code indentation and improve readability (#496)
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user