feat: 添加应用版本检查与更新提示功能;更新环境变量以支持版本管理

This commit is contained in:
2025-12-30 18:18:02 +07:00
parent e7e2b1bd85
commit 5b1ebac9c4
6 changed files with 22 additions and 10 deletions

View File

@@ -7,6 +7,7 @@ const { locale, loadSavedLanguage } = useLanguage();
const { initializeWallet } = useWalletStore();
const { updateProfile } = useUserStore();
const platform = usePlatform();
const { checkAndPromptUpdate } = useAppUpdate();
onMounted(() => {
if (!isAuthenticated.value)
@@ -18,6 +19,9 @@ onMounted(() => {
userStore.updateProfile();
}
});
useTimeoutFn(() => {
checkAndPromptUpdate();
}, 3000);
});
onBeforeMount(() => {