mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +00:00
parent
bc6612b89e
commit
6332aaa3a2
@ -598,7 +598,11 @@ function normalizeComponents (to, ___) {
|
||||
<% if (features.layouts) { %>
|
||||
function setLayoutForNextPage (to) {
|
||||
// Set layout
|
||||
let layout = this.$options.nuxt.err
|
||||
let hasError = Boolean(this.$options.nuxt.err)
|
||||
if (this._hadError && this._dateLastError === this.$options.nuxt.dateErr) {
|
||||
hasError = false
|
||||
}
|
||||
let layout = hasError
|
||||
? (NuxtError.options || NuxtError).layout
|
||||
: to.matched[0].components.default.options.layout
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user