Commit 982e6854 authored by heduo's avatar heduo

Merge branch 'feature/JiraTML-148/cxr' of http://119.78.67.12/git/root/ops_2024_vue into hd

parents dac7a2e0 b1eca428
...@@ -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