mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-17 14:11:07 +00:00
Fix layout not declared
This commit is contained in:
parent
dbe4f13a7a
commit
6c6e6e55aa
@ -199,7 +199,7 @@ async function render (to, from, next) {
|
|||||||
if (context._redirected) return
|
if (context._redirected) return
|
||||||
|
|
||||||
// Load layout for error page
|
// Load layout for error page
|
||||||
layout = await this.loadLayout(typeof NuxtError.layout === 'function' ? NuxtError.layout(context) : NuxtError.layout)
|
const layout = await this.loadLayout(typeof NuxtError.layout === 'function' ? NuxtError.layout(context) : NuxtError.layout)
|
||||||
await callMiddleware.call(this, Components, context, layout)
|
await callMiddleware.call(this, Components, context, layout)
|
||||||
if (context._redirected) return
|
if (context._redirected) return
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user