fix error layout issue

This commit is contained in:
Alexandre Chopin 2016-12-08 11:37:27 +01:00
parent 40e28de226
commit 5f8792036b
1 changed files with 1 additions and 1 deletions

View File

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