tangning 3 년 전
부모
커밋
3bc2e6393a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 {