From fe01ec34d3769151cd2b43802a4cdd71968697b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Thu, 25 Jun 2020 15:23:06 +0200 Subject: [PATCH] fix(vue-app): no need to set layout on App (#7606) --- packages/vue-app/template/App.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/packages/vue-app/template/App.js b/packages/vue-app/template/App.js index c05150ed5b..9a9affa862 100644 --- a/packages/vue-app/template/App.js +++ b/packages/vue-app/template/App.js @@ -41,25 +41,12 @@ 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 + key: this.layoutName }, [layoutEl]) <% } else { %> const templateEl = h('nuxt')