fix(vue-app): Followup for fix for handle prefetch error (#5687) (#5690)

This commit is contained in:
Rafał Chłodnicki 2019-05-10 11:56:28 +02:00 committed by Xin Du (Clark)
parent be18b31525
commit 8588ca9a7e
1 changed files with 2 additions and 1 deletions

View File

@ -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) { %>,