tangning 3 years ago
parent
commit
3bc2e6393a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/store/modules/user.ts

+ 1 - 1
src/store/modules/user.ts

@@ -127,7 +127,7 @@ export const useUserStore = defineStore({
       const userInfo = await getUserInfo();
       console.log('getUserInfo',userInfo)
       const { roles = [] } = userInfo;
-      if (isArray(roles)) {
+      if (isArray(roles)) { 
         const roleList = roles.map((item) => item.value) as RoleEnum[];
         this.setRoleList(roleList);
       } else {