mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +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) {
|
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 { %>
|
||||||
|
Loading…
Reference in New Issue
Block a user