Просмотр исходного кода

修复五级以上菜单404问题

RuoYi лет назад: 4
Родитель
Сommit
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
   var children = []
86
   var children = []
87
   childrenMap.forEach((el, index) => {
87
   childrenMap.forEach((el, index) => {
88
     if (el.children && el.children.length) {
88
     if (el.children && el.children.length) {
89
-      if (el.component === 'ParentView') {
89
+      if (el.component === 'ParentView' && !lastRouter) {
90
         el.children.forEach(c => {
90
         el.children.forEach(c => {
91
           c.path = el.path + '/' + c.path
91
           c.path = el.path + '/' + c.path
92
           if (c.children && c.children.length) {
92
           if (c.children && c.children.length) {