瀏覽代碼

修复五级以上菜单404问题

RuoYi 4 年之前
父節點
當前提交
3e907e8da7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ruoyi-ui/src/store/modules/permission.js

+ 1 - 1
ruoyi-ui/src/store/modules/permission.js

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