mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2025-12-11 04:22:54 +00:00
fix: cl-user-select 按角色分类bug
This commit is contained in:
parent
c35c33ed48
commit
8b98f3b65e
@ -223,7 +223,7 @@ async function getDept() {
|
||||
async function getRole() {
|
||||
return service.base.sys.role.list().then(res => {
|
||||
res.forEach(e => {
|
||||
e.children = users.value.filter(u => u.roleIds.includes(u.id));
|
||||
e.children = users.value.filter(u => u.roleIds.includes(e.id));
|
||||
});
|
||||
|
||||
data.role = res as Item[];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user