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);