修复菜单加载问题

This commit is contained in:
吕金泽 2022-08-05 19:14:00 +08:00
parent 20e29bbb07
commit fdc64b9143

View File

@ -36,7 +36,7 @@ export const filterAsyncRouter = (routers, level) => {
if (component === 'Layout') {
if (router.children && router.children.length > 0) {
const children = filterAsyncRouter(router.children, level + 1);
if(!children.some(it => it.isShow == 0)){
if(children.some(it => it.isShow == 1)){
router.children = children
setLayout()
}else{