fix undefined layout

This commit is contained in:
Pooya Parsa 2018-03-20 15:46:53 +03:30
parent c58a9c79a0
commit cc336c4c13

View File

@ -112,6 +112,7 @@ export default {
return this.layout return this.layout
}, },
loadLayout(layout) { loadLayout(layout) {
if (!layout || !layouts['_' + layout]) layout = 'default'
return Promise.resolve(layouts['_' + layout]) return Promise.resolve(layouts['_' + layout])
} }
<% } %> <% } %>