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 89 var children = []
90 90 childrenMap.forEach((el, index) => {
91 91 if (el.children && el.children.length) {
92   - if (el.component === 'ParentView') {
  92 + if (el.component === 'ParentView' && !lastRouter) {
93 93 el.children.forEach(c => {
94 94 c.path = el.path + '/' + c.path
95 95 if (c.children && c.children.length) {
... ...