From df9c9da25e0dd925125fb394ed99810c8e22a270 Mon Sep 17 00:00:00 2001 From: Seven Date: Tue, 23 Dec 2025 05:50:51 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=20IonRouterOutlet=20?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=94=AF=E6=8C=81=EF=BC=8C=E4=BC=98=E5=8C=96?= =?UTF-8?q?=20App=20=E7=BB=84=E4=BB=B6=E7=9A=84=E8=B7=AF=E7=94=B1=E5=8A=A8?= =?UTF-8?q?=E7=94=BB=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- auto-imports.d.ts | 1 + src/App.vue | 7 ++++--- src/main.ts | 2 ++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/auto-imports.d.ts b/auto-imports.d.ts index 1350f2a..65740c1 100644 --- a/auto-imports.d.ts +++ b/auto-imports.d.ts @@ -7,6 +7,7 @@ export {} declare global { const EffectScope: typeof import('vue').EffectScope + const IonRouterOutlet: typeof import('@ionic/vue').IonRouterOutlet const acceptHMRUpdate: typeof import('pinia').acceptHMRUpdate const asyncComputed: typeof import('@vueuse/core').asyncComputed const autoResetRef: typeof import('@vueuse/core').autoResetRef diff --git a/src/App.vue b/src/App.vue index 50333ca..26a6c22 100644 --- a/src/App.vue +++ b/src/App.vue @@ -6,15 +6,16 @@ const { isAuthenticated } = storeToRefs(userStore); const { locale, loadSavedLanguage } = useLanguage(); const { initializeWallet } = useWalletStore(); const { updateProfile } = useUserStore(); +const route = useRoute(); onMounted(() => { if (!isAuthenticated.value) return; updateProfile(); initializeWallet(); - CapacitorApp.addListener("appStateChange", async ({ isActive }) => { + CapacitorApp.addListener("appStateChange", ({ isActive }) => { if (isActive) { - await userStore.updateProfile(); + userStore.updateProfile(); } }); }); @@ -31,7 +32,7 @@ watch(locale, (newLocale) => { diff --git a/src/main.ts b/src/main.ts index aaca9d9..077d771 100644 --- a/src/main.ts +++ b/src/main.ts @@ -52,6 +52,8 @@ authClient.getSession().then((session) => { mode: "ios", statusTap: true, swipeBackEnabled: true, + // rippleEffect: true, + // animated: false, }) .use(uiComponents) .use(pinia)