mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2025-12-11 04:22:54 +00:00
Merge pull request #150 from shxhanxia/patch-1
fix: cl-user-select 按角色分类bug
This commit is contained in:
commit
861ff875ce
@ -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