mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
fix(vue-app): no need to set layout on App (#7606)
This commit is contained in:
parent
4a0cf8f404
commit
fe01ec34d3
@ -41,24 +41,11 @@ export default {
|
||||
render (h, props) {
|
||||
<% if (loading) { %>const loadingEl = h('NuxtLoading', { ref: 'loading' })<% } %>
|
||||
<% if (features.layouts) { %>
|
||||
<% if (components.ErrorPage) { %>
|
||||
if (this.nuxt.err && NuxtError) {
|
||||
const errorLayout = (NuxtError.options || NuxtError).layout
|
||||
if (errorLayout) {
|
||||
this.setLayout(
|
||||
typeof errorLayout === 'function'
|
||||
? errorLayout.call(NuxtError, this.context)
|
||||
: errorLayout
|
||||
)
|
||||
}
|
||||
}
|
||||
<% } %>
|
||||
const layoutEl = h(this.layout || 'nuxt')
|
||||
const templateEl = h('div', {
|
||||
domProps: {
|
||||
id: '__layout'
|
||||
},
|
||||
|
||||
key: this.layoutName
|
||||
}, [layoutEl])
|
||||
<% } else { %>
|
||||
|
Loading…
Reference in New Issue
Block a user