正在显示
1 个修改的文件
包含
4 行增加
和
0 行删除
| @@ -98,6 +98,10 @@ function filterChildren(childrenMap, lastRouter = false) { | @@ -98,6 +98,10 @@ function filterChildren(childrenMap, lastRouter = false) { | ||
| 98 | } | 98 | } |
| 99 | if (lastRouter) { | 99 | if (lastRouter) { |
| 100 | el.path = lastRouter.path + '/' + el.path | 100 | el.path = lastRouter.path + '/' + el.path |
| 101 | + if (el.children && el.children.length) { | ||
| 102 | + children = children.concat(filterChildren(el.children, el)) | ||
| 103 | + return | ||
| 104 | + } | ||
| 101 | } | 105 | } |
| 102 | children = children.concat(el) | 106 | children = children.concat(el) |
| 103 | }) | 107 | }) |
-
请 注册 或 登录 后发表评论