From ddb025b1243360a8086bdf7d4bbd809d28ff8e45 Mon Sep 17 00:00:00 2001 From: Seven Date: Thu, 8 Jan 2026 01:04:30 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=BA=E9=80=9A=E7=9F=A5=E8=B7=AF?= =?UTF-8?q?=E7=94=B1=E6=B7=BB=E5=8A=A0=E8=AE=A4=E8=AF=81=E8=A6=81=E6=B1=82?= =?UTF-8?q?=EF=BC=8C=E7=A1=AE=E4=BF=9D=E7=94=A8=E6=88=B7=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E5=90=8E=E6=89=8D=E8=83=BD=E8=AE=BF=E9=97=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 1 + src/store/user.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/router/index.ts b/src/router/index.ts index 5028654..4a4d2e6 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -36,6 +36,7 @@ const routes: Array = [ { path: "notify", component: () => import("@/views/notify/index.vue"), + meta: { requiresAuth: true }, }, { path: "user", diff --git a/src/store/user.ts b/src/store/user.ts index c41e71a..6920b11 100644 --- a/src/store/user.ts +++ b/src/store/user.ts @@ -14,8 +14,10 @@ export const useUserStore = defineStore("user", () => { const isAuthenticated = computed(() => !!token.value); async function updateProfile() { + const { initializeWallet } = useWalletStore(); const { data } = await safeClient(client.api.user.profile.get(), { silent: true }); state.userProfile = data.value || null; + initializeWallet(); } function setToken(value: string) {