yinbangzhong
2024-08-16 a8bbd82b4ea382633b8e8c4075290cd3eea50d45
角色
2个文件已修改
5 ■■■■■ 已修改文件
src/api/authority.ts 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/store/modules/user/index.ts 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/authority.ts
@@ -10,9 +10,6 @@
  phoneNumber: string;
  dept: any;
  deptName:string;
  resources: any;
  knowledges: any;
  dialogs: any;
  createTime: string;
  status: string;
  psw:string;
src/store/modules/user/index.ts
@@ -78,8 +78,6 @@
        };
        if(res.data.roles && res.data.roles.length>0)
            this.resources=res.data.roles[0].resources;
        else
            this.resources=res.data.resources;
        setUserInfo(JSON.stringify(userInfo));
        setUserResources(JSON.stringify(this.resources))
        for (const r of this.resources) {