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

This commit is contained in:
疯狂的狮子Li
2023-11-10 16:36:52 +08:00
parent 87f824ff39
commit 49ca000a07
2 changed files with 141 additions and 133 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)
})