From d64b6913452f4dc2c55a9af5711a70bbaccd7606 Mon Sep 17 00:00:00 2001 From: xlsea Date: Fri, 10 May 2024 23:33:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E8=A7=92=E8=89=B2=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/auth/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/auth/index.ts b/src/store/modules/auth/index.ts index 42735d2..7bd7c59 100644 --- a/src/store/modules/auth/index.ts +++ b/src/store/modules/auth/index.ts @@ -113,7 +113,7 @@ export const useAuthStore = defineStore(SetupStoreId.Auth, () => { if (!error) { info!.userName = info?.username; - info!.roles = [info.role]; + info!.roles = [roleTypeRecord[info.role]]; localStg.set('userInfo', info); Object.assign(userInfo, info);