[bug] - 修改线上所领导不能单点登录的bug
This commit is contained in:
@@ -199,5 +199,19 @@ export function judgeGlobalPermission(bindingValue) {
|
||||
return true
|
||||
}
|
||||
|
||||
/*判断是否有菜单的权限*/
|
||||
export function menuPermission(menuData, routePath) {
|
||||
let accessedRouters = menuData.some(route => {
|
||||
if (route.path !== routePath) {
|
||||
if (route.children && route.children.length) {
|
||||
return menuPermission(route.children, routePath)
|
||||
}
|
||||
return false
|
||||
}
|
||||
return true
|
||||
})
|
||||
return accessedRouters
|
||||
}
|
||||
|
||||
export default hasPermission
|
||||
|
||||
|
||||
Reference in New Issue
Block a user