fix: cl-user-select 按角色分类bug

This commit is contained in:
韩侠 2025-05-16 15:23:07 +08:00 committed by GitHub
parent f89035e48f
commit 8976bf67a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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[];