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,25 +41,12 @@ export default {
|
|||||||
render (h, props) {
|
render (h, props) {
|
||||||
<% if (loading) { %>const loadingEl = h('NuxtLoading', { ref: 'loading' })<% } %>
|
<% if (loading) { %>const loadingEl = h('NuxtLoading', { ref: 'loading' })<% } %>
|
||||||
<% if (features.layouts) { %>
|
<% 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 layoutEl = h(this.layout || 'nuxt')
|
||||||
const templateEl = h('div', {
|
const templateEl = h('div', {
|
||||||
domProps: {
|
domProps: {
|
||||||
id: '__layout'
|
id: '__layout'
|
||||||
},
|
},
|
||||||
|
key: this.layoutName
|
||||||
key: this.layoutName
|
|
||||||
}, [layoutEl])
|
}, [layoutEl])
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
const templateEl = h('nuxt')
|
const templateEl = h('nuxt')
|
||||||
|
Loading…
Reference in New Issue
Block a user