Commit b1eca428 authored by cxr's avatar cxr

feat(cxr): 权限

parent 53e45829
...@@ -162,7 +162,7 @@ export const useUserStore = defineStore({ ...@@ -162,7 +162,7 @@ export const useUserStore = defineStore({
const role = userInfo.userRoles[0].roleNum; const role = userInfo.userRoles[0].roleNum;
//取第一个为默认角色 //取第一个为默认角色
const roleList = Array.from(RoleEnum[role]); const roleList = Array.from(RoleEnum[role]);
this.setRoleList(roleList as []); this.setRoleList(this.getRoleList || (roleList as []));
} else { } else {
userInfo.userRoles = []; userInfo.userRoles = [];
this.setRoleList([]); this.setRoleList([]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment