feat: 添加平台检测功能,优化路由动画效果

This commit is contained in:
2025-12-28 01:53:08 +07:00
parent 7fc1c84329
commit b6cb514bcd
3 changed files with 28 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ const { isAuthenticated } = storeToRefs(userStore);
const { locale, loadSavedLanguage } = useLanguage();
const { initializeWallet } = useWalletStore();
const { updateProfile } = useUserStore();
const platform = usePlatform();
onMounted(() => {
if (!isAuthenticated.value)
@@ -31,7 +32,7 @@ watch(locale, (newLocale) => {
<template>
<IonApp>
<Suspense>
<IonRouterOutlet :animated="false" />
<IonRouterOutlet :animated="platform !== 'browser'" />
</Suspense>
</IonApp>
</template>