mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +00:00
fix error layout issue
This commit is contained in:
parent
40e28de226
commit
5f8792036b
@ -208,7 +208,7 @@ function * generateRoutesAndFiles () {
|
||||
templateVars.components.ErrorPage = r(this.dir, 'pages/_error.vue')
|
||||
}
|
||||
if (fs.existsSync(join(this.dir, 'layouts', 'error.vue'))) {
|
||||
templateVars.appPath = r(this.dir, 'layouts/error.vue')
|
||||
templateVars.components.ErrorPage = r(this.dir, 'layouts/error.vue')
|
||||
}
|
||||
let moveTemplates = templatesFiles.map((file) => {
|
||||
return readFile(r(__dirname, '..', 'app', file), 'utf8')
|
||||
|
Loading…
Reference in New Issue
Block a user