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,7 +111,8 @@ export default {
|
||||
// Preload the data only if not in preview mode
|
||||
if (!this.$root.isPreview) {
|
||||
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) { %>
|
||||
|
Loading…
Reference in New Issue
Block a user