Przeglądaj źródła

修复五级以上菜单404问题

RuoYi 4 lat temu
rodzic
commit
3e907e8da7
1 zmienionych plików z 1 dodań i 1 usunięć
  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) {