mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +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
|
||||
|
||||
// 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)
|
||||
if (context._redirected) return
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user