Commit fad3a030e92cd3a163849ccd2e24d944e290133a

Authored by YunaiV
1 parent 02a0ab6d

v3.8.0 修复五级以上菜单404问题

yudao-ui-admin/src/store/modules/permission.js
@@ -89,7 +89,7 @@ function filterChildren(childrenMap, lastRouter = false) { @@ -89,7 +89,7 @@ function filterChildren(childrenMap, lastRouter = false) {
89 var children = [] 89 var children = []
90 childrenMap.forEach((el, index) => { 90 childrenMap.forEach((el, index) => {
91 if (el.children && el.children.length) { 91 if (el.children && el.children.length) {
92 - if (el.component === 'ParentView') { 92 + if (el.component === 'ParentView' && !lastRouter) {
93 el.children.forEach(c => { 93 el.children.forEach(c => {
94 c.path = el.path + '/' + c.path 94 c.path = el.path + '/' + c.path
95 if (c.children && c.children.length) { 95 if (c.children && c.children.length) {