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()
|
||||
|
||||
for (const Component of Components) {
|
||||
try {
|
||||
Component()
|
||||
Component.__prefetched = true
|
||||
} catch (e) {}
|
||||
Component().then(() => Component.__prefetched = true).catch(() => {})
|
||||
}<% if (router.linkPrefetchedClass) { %>
|
||||
this.addPrefetchedClass()<% } %>
|
||||
}<% if (router.linkPrefetchedClass) { %>,
|
||||
|
Loading…
Reference in New Issue
Block a user