tangning 8 ماه پیش
والد
کامیت
59d1501928
1فایلهای تغییر یافته به همراه0 افزوده شده و 2 حذف شده
  1. 0 2
      src/store/modules/user.ts

+ 0 - 2
src/store/modules/user.ts

@@ -149,7 +149,6 @@ export const useUserStore = defineStore({
       if (!this.getToken) return null;
       const userInfo = await getUserInfo();
       const { roleId, agent = null } = userInfo;
-      console.log('getUserInfoAction', roleId, agent);
       this.setAgent(agent);
       if (isArray(roleId)) {
         const roleList = roleId.map((item) => item.value) as RoleEnum[];
@@ -159,7 +158,6 @@ export const useUserStore = defineStore({
         this.setRoleList([RoleEnum.SUPER, RoleEnum.TEST]);
       } else if (agent) {
         const myRoles = agent.agentLevel == 2 ? RoleEnum.DISTRIBUTOR : RoleEnum.TEST;
-        console.log('agent', agent, myRoles);
         userInfo.roles = [myRoles];
         this.setRoleList([myRoles]);
       } else {