作者 RuoYi

修复五级路由缓存无效问题

@@ -98,6 +98,10 @@ function filterChildren(childrenMap, lastRouter = false) { @@ -98,6 +98,10 @@ function filterChildren(childrenMap, lastRouter = false) {
98 } 98 }
99 if (lastRouter) { 99 if (lastRouter) {
100 el.path = lastRouter.path + '/' + el.path 100 el.path = lastRouter.path + '/' + el.path
  101 + if (el.children && el.children.length) {
  102 + children = children.concat(filterChildren(el.children, el))
  103 + return
  104 + }
101 } 105 }
102 children = children.concat(el) 106 children = children.concat(el)
103 }) 107 })