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

This commit is contained in:
RuoYi 2023-11-10 15:34:08 +08:00
parent d3672b2714
commit 87be9b7acf
1 changed files with 4 additions and 0 deletions

View File

@ -101,6 +101,10 @@ function filterChildren(childrenMap, lastRouter = false) {
}
if (lastRouter) {
el.path = lastRouter.path + '/' + el.path
if (el.children && el.children.length) {
children = children.concat(filterChildren(el.children, el))
return
}
}
children = children.concat(el)
})