mirror of
https://github.com/iczer/vue-antd-admin
synced 2025-04-06 04:00:06 +08:00
fix: Fixed an issue where the role array configuration did not work; 🐛
修复:角色数组配置不生效的问题;
This commit is contained in:
parent
60be8cf4ec
commit
35f0e431b8
@ -39,9 +39,9 @@ const auth = function(authConfig, permission, role, permissions, roles) {
|
|||||||
if (type === 'permission') {
|
if (type === 'permission') {
|
||||||
return checkFromPermission(check, permission)
|
return checkFromPermission(check, permission)
|
||||||
} else if (type === 'role') {
|
} else if (type === 'role') {
|
||||||
return checkFromRoles(check, role)
|
return checkFromRoles(check, roles)
|
||||||
} else {
|
} else {
|
||||||
return checkFromPermission(check, permission) || checkFromRoles(check, role)
|
return checkFromPermission(check, permission) || checkFromRoles(check, roles)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user