mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
🐛 fix(check): 开发时检测优化
This commit is contained in:
@@ -71,11 +71,13 @@ async function listenOnTheme () {
|
|||||||
async function checkLoad () {
|
async function checkLoad () {
|
||||||
const localBuildTime = appStore.buildTime;
|
const localBuildTime = appStore.buildTime;
|
||||||
const buildTime = getBuildTime();
|
const buildTime = getBuildTime();
|
||||||
if (localBuildTime !== buildTime) {
|
if (!buildTime.startsWith("dev")) {
|
||||||
|
if (localBuildTime.startsWith("dev") || localBuildTime < buildTime) {
|
||||||
appStore.buildTime = buildTime;
|
appStore.buildTime = buildTime;
|
||||||
console.info("数据已过期,开始加载数据...");
|
console.info("数据已过期,开始加载数据...");
|
||||||
appStore.loading = false;
|
appStore.loading = false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (appStore.loading) {
|
if (appStore.loading) {
|
||||||
console.info("数据已加载!");
|
console.info("数据已加载!");
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user