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 {