mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-17 06:01:34 +00:00
Merge branch 'dev' of github.com:nuxt/nuxt.js into dev
This commit is contained in:
commit
a71ac0f41a
@ -219,9 +219,7 @@ export function createRoutes (files, srcDir) {
|
||||
route.chunkName = file.replace(/\.vue$/, '')
|
||||
let child = _.find(parent, { name: route.name })
|
||||
if (child) {
|
||||
if (!child.children) {
|
||||
child.children = []
|
||||
}
|
||||
child.children = child.children || []
|
||||
parent = child.children
|
||||
route.path = ''
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user