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