mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +00:00
fix deleted route name for parent
This commit is contained in:
parent
3d083afc3d
commit
538248a152
@ -262,7 +262,9 @@ function cleanChildrenRoutes (routes, isChild = false) {
|
||||
}
|
||||
route.name = route.name.replace(/-index$/, '')
|
||||
if (route.children) {
|
||||
delete route.name
|
||||
if (route.children.find((child) => child.path === '')) {
|
||||
delete route.name
|
||||
}
|
||||
route.children = cleanChildrenRoutes(route.children, true)
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user