Browse Source

fix(progress): fix progress sometimes cannot done (#388)

pull/389/head
HelKim 6 years ago
committed by GitHub
parent
commit
8360b1d688
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/router/guard/progressGuard.ts

4
src/router/guard/progressGuard.ts

@ -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;
});

Loading…
Cancel
Save