feat: 优化应用更新检查逻辑;在生产环境中延迟检查更新并重构状态管理

This commit is contained in:
2025-12-30 19:34:34 +07:00
parent b6132ea30d
commit 72e7c77003
3 changed files with 40 additions and 40 deletions

View File

@@ -19,9 +19,11 @@ onMounted(() => {
userStore.updateProfile();
}
});
useTimeoutFn(() => {
checkAndPromptUpdate();
}, 3000);
if (import.meta.env.MODE === "production") {
useTimeoutFn(() => {
checkAndPromptUpdate();
}, 3000);
}
});
onBeforeMount(() => {