Преглед на файлове

v3.8.0 修复五级以上菜单404问题

YunaiV преди 3 години
родител
ревизия
fad3a030e9
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      yudao-ui-admin/src/store/modules/permission.js

+ 1 - 1
yudao-ui-admin/src/store/modules/permission.js

@@ -89,7 +89,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) {