From b957eb7cc20dc6e651e078187fc51c883b561970 Mon Sep 17 00:00:00 2001 From: Seven Date: Sun, 21 Dec 2025 01:13:55 +0700 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E8=AE=A4=E8=AF=81=E9=80=BB=E8=BE=91=EF=BC=8C=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E6=9C=AA=E4=BD=BF=E7=94=A8=E7=9A=84=E6=B3=A8=E9=94=80?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=92=8C=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/composables/beforeApp.ts | 9 ++++++--- src/views/riwa/index.vue | 19 +------------------ 2 files changed, 7 insertions(+), 21 deletions(-) diff --git a/src/composables/beforeApp.ts b/src/composables/beforeApp.ts index 886166f..9b4743d 100644 --- a/src/composables/beforeApp.ts +++ b/src/composables/beforeApp.ts @@ -3,9 +3,12 @@ export function beforeApp() { const { initializeWallet } = useWalletStore(); return new Promise((resolve) => { - useAuth().then(() => { - updateProfile(); - initializeWallet(); + useAuth().then((session) => { + if (session) { + updateProfile(); + initializeWallet(); + } + resolve(); }); }); diff --git a/src/views/riwa/index.vue b/src/views/riwa/index.vue index 73245ae..a20f045 100644 --- a/src/views/riwa/index.vue +++ b/src/views/riwa/index.vue @@ -1,13 +1,6 @@