mirror of
https://gitee.com/ssssssss-team/magic-boot.git
synced 2025-04-02 11:22:40 +08:00
修复菜单加载问题
This commit is contained in:
parent
20e29bbb07
commit
fdc64b9143
@ -36,7 +36,7 @@ export const filterAsyncRouter = (routers, level) => {
|
|||||||
if (component === 'Layout') {
|
if (component === 'Layout') {
|
||||||
if (router.children && router.children.length > 0) {
|
if (router.children && router.children.length > 0) {
|
||||||
const children = filterAsyncRouter(router.children, level + 1);
|
const children = filterAsyncRouter(router.children, level + 1);
|
||||||
if(!children.some(it => it.isShow == 0)){
|
if(children.some(it => it.isShow == 1)){
|
||||||
router.children = children
|
router.children = children
|
||||||
setLayout()
|
setLayout()
|
||||||
}else{
|
}else{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user