From 8d4588b029459268c0c9e586fe3c9aeade64f9b6 Mon Sep 17 00:00:00 2001 From: pany <939630029@qq.com> Date: Tue, 18 Feb 2025 16:25:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4=E5=86=97=E4=BD=99?= =?UTF-8?q?=E7=9A=84=20async=20=E5=85=B3=E9=94=AE=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pinia/stores/user.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pinia/stores/user.ts b/src/pinia/stores/user.ts index e3c3398..cc752fd 100644 --- a/src/pinia/stores/user.ts +++ b/src/pinia/stores/user.ts @@ -15,7 +15,7 @@ export const useUserStore = defineStore("user", () => { const settingsStore = useSettingsStore() // 设置 Token - const setToken = async (value: string) => { + const setToken = (value: string) => { _setToken(value) token.value = value } @@ -29,7 +29,7 @@ export const useUserStore = defineStore("user", () => { } // 模拟角色变化 - const changeRoles = async (role: string) => { + const changeRoles = (role: string) => { const newToken = `token-${role}` token.value = newToken _setToken(newToken)