Fix error.vue layout

This commit is contained in:
Sébastien Chopin 2016-12-09 13:50:34 +01:00
parent 151bd73b82
commit 71a050da12

View File

@ -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')