Browse Source

路由机制调整

test
liwei 3 years ago
parent
commit
92e33d7763
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/components/NavMenu.vue

+ 2
- 2
src/components/NavMenu.vue View File

@ -47,13 +47,13 @@ export default {
defaultRouter(routers) {
let path = "";
function setPath(list) {
for (var i = 0; i < list.length; i++) {
for (let i = 0; i < list.length; i++) {
if (list[i].children && list[i].children.length) {
setPath(list[i].children);
} else {
path = list[i].path;
break;
}
break;
}
}
setPath(routers);


Loading…
Cancel
Save