fix: 修复切换组织时的错误提示

This commit is contained in:
ibuler
2021-06-17 14:47:56 +08:00
committed by 老广
parent 27a78c3b23
commit 84930b27fa

View File

@@ -80,6 +80,11 @@ export function hasUserPagePerm(userPerm) {
}
export function hasPerm(source, target) {
if (target === null) {
return true
} else if (source === null) {
return false
}
if (typeof source !== 'object') {
source = [source]
}