解决导航菜单三级目录无法跳转的bug
This commit is contained in:
parent
3f24de4eed
commit
755117abc2
@ -179,9 +179,16 @@
|
||||
const routers = this.$store.state.permission.routers;
|
||||
for (let i = 0; i < routers.length; i++) {
|
||||
if(routers[i].children) {
|
||||
//二级目录
|
||||
for (let j = 0; j < routers[i].children.length; j++) {
|
||||
if(routers[i].children[j].iframeComponent) {
|
||||
iframeArr.push(routers[i].children[j])
|
||||
if(routers[i].children[j].children) {
|
||||
//三级目录
|
||||
for (let k = 0; k < routers[i].children[j].children.length; k++) {
|
||||
iframeArr.push(routers[i].children[j].children[k])
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user