From f7a99e7a6504dcc3ad42748b7a5e715497358165 Mon Sep 17 00:00:00 2001 From: plightfield <1207120484@qq.com> Date: Fri, 8 Nov 2024 19:51:42 +0800 Subject: [PATCH] change --- src/user/useUserStore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/user/useUserStore.ts b/src/user/useUserStore.ts index 3a299dd..97b1f65 100644 --- a/src/user/useUserStore.ts +++ b/src/user/useUserStore.ts @@ -30,7 +30,6 @@ export default defineStore('user', () => { if (!val) return request('GET', '/api/profile').then((res) => { Object.assign(profile, res) - }) }, { immediate: true } @@ -41,6 +40,7 @@ export default defineStore('user', () => { Object.assign(profile, { ...defaultUserInfo }) // profile.avatar = '' } + // 自动备份 return { token, profile,