mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +00:00
This commit is contained in:
parent
be18b31525
commit
8588ca9a7e
@ -85,7 +85,8 @@ export default {
|
||||
const Components = this.getPrefetchComponents()
|
||||
|
||||
for (const Component of Components) {
|
||||
Component().then(() => Component.__prefetched = true).catch(() => {})
|
||||
Component().catch(() => {})
|
||||
Component.__prefetched = true
|
||||
}<% if (router.linkPrefetchedClass) { %>
|
||||
this.addPrefetchedClass()<% } %>
|
||||
}<% if (router.linkPrefetchedClass) { %>,
|
||||
|
Loading…
Reference in New Issue
Block a user