mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(vue-app): nuxt-link
prefetch error on fallback page (#7766)
This commit is contained in:
parent
6a2576b6f6
commit
66b4aa2f62
@ -111,7 +111,8 @@ 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)
|
||||||
this.$nuxt.fetchPayload(href).catch(() => {})
|
if (this.$nuxt)
|
||||||
|
this.$nuxt.fetchPayload(href).catch(() => {})
|
||||||
}
|
}
|
||||||
<% } %>
|
<% } %>
|
||||||
<% if (router.linkPrefetchedClass) { %>
|
<% if (router.linkPrefetchedClass) { %>
|
||||||
|
Loading…
Reference in New Issue
Block a user