Browse Source

修复五级以上菜单404问题

tags/v3.3.0
RuoYi 3 years ago
parent
commit
3e907e8da7
  1. 2
      ruoyi-ui/src/store/modules/permission.js

2
ruoyi-ui/src/store/modules/permission.js

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

Loading…
Cancel
Save