Commit 8360b1d6886b5639cf43da5ab866156d140a0f01
Committed by
GitHub
1 parent
b67cf22d
fix(progress): fix progress sometimes cannot done (#388)
Showing
1 changed file
with
2 additions
and
2 deletions
src/router/guard/progressGuard.ts
... | ... | @@ -15,8 +15,8 @@ export function createProgressGuard(router: Router) { |
15 | 15 | return true; |
16 | 16 | }); |
17 | 17 | |
18 | - router.afterEach(async (to) => { | |
19 | - if (to.meta.loaded) return true; | |
18 | + router.afterEach(async () => { | |
19 | + // if (to.meta.loaded) return true; | |
20 | 20 | unref(getOpenNProgress) && nProgress.done(); |
21 | 21 | return true; |
22 | 22 | }); | ... | ... |