feat: 优化应用更新检查逻辑;在生产环境中延迟检查更新并重构状态管理
This commit is contained in:
@@ -19,9 +19,11 @@ onMounted(() => {
|
||||
userStore.updateProfile();
|
||||
}
|
||||
});
|
||||
useTimeoutFn(() => {
|
||||
checkAndPromptUpdate();
|
||||
}, 3000);
|
||||
if (import.meta.env.MODE === "production") {
|
||||
useTimeoutFn(() => {
|
||||
checkAndPromptUpdate();
|
||||
}, 3000);
|
||||
}
|
||||
});
|
||||
|
||||
onBeforeMount(() => {
|
||||
|
||||
Reference in New Issue
Block a user