提交 73f881c7 authored 作者: RuoYi's avatar RuoYi

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

上级 b357aeda
...@@ -98,6 +98,10 @@ function filterChildren(childrenMap, lastRouter = false) { ...@@ -98,6 +98,10 @@ function filterChildren(childrenMap, lastRouter = false) {
} }
if (lastRouter) { if (lastRouter) {
el.path = lastRouter.path + '/' + el.path el.path = lastRouter.path + '/' + el.path
if (el.children && el.children.length) {
children = children.concat(filterChildren(el.children, el))
return
}
} }
children = children.concat(el) children = children.concat(el)
}) })
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论