Commit b1eca428 authored by cxr's avatar cxr

feat(cxr): 权限

parent 53e45829
......@@ -162,7 +162,7 @@ export const useUserStore = defineStore({
const role = userInfo.userRoles[0].roleNum;
//取第一个为默认角色
const roleList = Array.from(RoleEnum[role]);
this.setRoleList(roleList as []);
this.setRoleList(this.getRoleList || (roleList as []));
} else {
userInfo.userRoles = [];
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