mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
extendRoutes add resolve func as param for window
This commit is contained in:
parent
6e2fb4642e
commit
fd966485ee
@ -210,7 +210,7 @@ function * generateRoutesAndFiles () {
|
||||
templateVars.router.routes = createRoutes(files, this.srcDir)
|
||||
if (typeof this.options.router.extendRoutes === 'function') {
|
||||
// let the user extend the routes
|
||||
this.options.router.extendRoutes(templateVars.router.routes)
|
||||
this.options.router.extendRoutes(templateVars.router.routes, r)
|
||||
}
|
||||
// Routes for Generate command
|
||||
this.routes = flatRoutes(templateVars.router.routes, '')
|
||||
|
Loading…
Reference in New Issue
Block a user