mirror of
https://gitee.com/ssssssss-team/magic-boot.git
synced 2025-04-01 03:02:38 +08:00
修复菜单加载问题
This commit is contained in:
parent
20e29bbb07
commit
fdc64b9143
@ -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{
|
||||
|
Loading…
x
Reference in New Issue
Block a user