mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix undefined layout
This commit is contained in:
parent
c58a9c79a0
commit
cc336c4c13
@ -112,6 +112,7 @@ export default {
|
||||
return this.layout
|
||||
},
|
||||
loadLayout(layout) {
|
||||
if (!layout || !layouts['_' + layout]) layout = 'default'
|
||||
return Promise.resolve(layouts['_' + layout])
|
||||
}
|
||||
<% } %>
|
||||
|
Loading…
Reference in New Issue
Block a user