tangning 3 năm trước cách đây
mục cha
commit
3bc2e6393a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 {