From 2ada3cf740097f7ccbbaff1e3f33b285fed100fd Mon Sep 17 00:00:00 2001 From: Aresn Date: Mon, 27 May 2024 14:03:20 +0800 Subject: [PATCH] Update user.js --- stores/user.js | 1 + 1 file changed, 1 insertion(+) diff --git a/stores/user.js b/stores/user.js index e995231..3b6c64a 100644 --- a/stores/user.js +++ b/stores/user.js @@ -20,6 +20,7 @@ export const useUserStore = defineStore('user', () => { } async function $updateUserInfo () { + if (!token.value) return const { data } = await useRequest('/v1/user/user_info') userInfo.value = JSON.stringify(data.value.data) } -- GitLab