mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
parent
2a66d1952e
commit
be18b31525
@ -85,10 +85,7 @@ export default {
|
|||||||
const Components = this.getPrefetchComponents()
|
const Components = this.getPrefetchComponents()
|
||||||
|
|
||||||
for (const Component of Components) {
|
for (const Component of Components) {
|
||||||
try {
|
Component().then(() => Component.__prefetched = true).catch(() => {})
|
||||||
Component()
|
|
||||||
Component.__prefetched = true
|
|
||||||
} catch (e) {}
|
|
||||||
}<% if (router.linkPrefetchedClass) { %>
|
}<% if (router.linkPrefetchedClass) { %>
|
||||||
this.addPrefetchedClass()<% } %>
|
this.addPrefetchedClass()<% } %>
|
||||||
}<% if (router.linkPrefetchedClass) { %>,
|
}<% if (router.linkPrefetchedClass) { %>,
|
||||||
|
Loading…
Reference in New Issue
Block a user