mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
parent
bc6612b89e
commit
6332aaa3a2
@ -598,7 +598,11 @@ function normalizeComponents (to, ___) {
|
|||||||
<% if (features.layouts) { %>
|
<% if (features.layouts) { %>
|
||||||
function setLayoutForNextPage (to) {
|
function setLayoutForNextPage (to) {
|
||||||
// Set layout
|
// 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
|
? (NuxtError.options || NuxtError).layout
|
||||||
: to.matched[0].components.default.options.layout
|
: to.matched[0].components.default.options.layout
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user