作者 RuoYi

修复五级以上菜单404问题

@@ -86,7 +86,7 @@ function filterChildren(childrenMap, lastRouter = false) { @@ -86,7 +86,7 @@ function filterChildren(childrenMap, lastRouter = false) {
86 var children = [] 86 var children = []
87 childrenMap.forEach((el, index) => { 87 childrenMap.forEach((el, index) => {
88 if (el.children && el.children.length) { 88 if (el.children && el.children.length) {
89 - if (el.component === 'ParentView') { 89 + if (el.component === 'ParentView' && !lastRouter) {
90 el.children.forEach(c => { 90 el.children.forEach(c => {
91 c.path = el.path + '/' + c.path 91 c.path = el.path + '/' + c.path
92 if (c.children && c.children.length) { 92 if (c.children && c.children.length) {