mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
Fix error.vue layout
This commit is contained in:
parent
151bd73b82
commit
71a050da12
@ -208,7 +208,7 @@ function * generateRoutesAndFiles () {
|
||||
templateVars.components.ErrorPage = r(this.srcDir, 'pages/_error.vue')
|
||||
}
|
||||
if (fs.existsSync(join(this.srcDir, 'layouts', 'error.vue'))) {
|
||||
templateVars.components.ErrorPage = r(this.dir, 'layouts/error.vue')
|
||||
templateVars.components.ErrorPage = r(this.srcDir, 'layouts/error.vue')
|
||||
}
|
||||
let moveTemplates = templatesFiles.map((file) => {
|
||||
return readFile(r(__dirname, '..', 'app', file), 'utf8')
|
||||
|
Loading…
Reference in New Issue
Block a user