mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-13 09:33:54 +00:00
fix undefined layout
This commit is contained in:
parent
c58a9c79a0
commit
cc336c4c13
@ -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])
|
||||||
}
|
}
|
||||||
<% } %>
|
<% } %>
|
||||||
|
Loading…
Reference in New Issue
Block a user