mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
fix(vue-app): nuxt-link
prefetch error on fallback page (#7766)
This commit is contained in:
parent
6a2576b6f6
commit
66b4aa2f62
@ -111,6 +111,7 @@ export default {
|
|||||||
// Preload the data only if not in preview mode
|
// Preload the data only if not in preview mode
|
||||||
if (!this.$root.isPreview) {
|
if (!this.$root.isPreview) {
|
||||||
const { href } = this.$router.resolve(this.to, this.$route, this.append)
|
const { href } = this.$router.resolve(this.to, this.$route, this.append)
|
||||||
|
if (this.$nuxt)
|
||||||
this.$nuxt.fetchPayload(href).catch(() => {})
|
this.$nuxt.fetchPayload(href).catch(() => {})
|
||||||
}
|
}
|
||||||
<% } %>
|
<% } %>
|
||||||
|
Loading…
Reference in New Issue
Block a user