Skip to content

Commit

Permalink
fix(progress): fix progress sometimes cannot done (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
HelKim committed Mar 18, 2021
1 parent b67cf22 commit 8360b1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/router/guard/progressGuard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export function createProgressGuard(router: Router) {
return true;
});

router.afterEach(async (to) => {
if (to.meta.loaded) return true;
router.afterEach(async () => {
// if (to.meta.loaded) return true;
unref(getOpenNProgress) && nProgress.done();
return true;
});
Expand Down

0 comments on commit 8360b1d

Please sign in to comment.