fix: the detection logic of the new version

This commit is contained in:
zyronon
2025-09-15 00:33:36 +08:00
parent 12a22baf2b
commit 14ca910066
5 changed files with 12 additions and 7 deletions

View File

@@ -58,9 +58,11 @@ async function init() {
store.load = true
setTheme(settingStore.theme)
get(APP_VERSION.key).then(r => {
runtimeStore.isNew = r ? (APP_VERSION.version > Number(r)) : true
})
if (!settingStore.first) {
get(APP_VERSION.key).then(r => {
runtimeStore.isNew = r ? (APP_VERSION.version > Number(r)) : true
})
}
}
onMounted(init)