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

This commit is contained in:
HelKim 2021-03-18 21:58:20 +08:00 committed by GitHub
parent b67cf22dfc
commit 8360b1d688
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,8 +15,8 @@ export function createProgressGuard(router: Router) {
return true; return true;
}); });
router.afterEach(async (to) => { router.afterEach(async () => {
if (to.meta.loaded) return true; // if (to.meta.loaded) return true;
unref(getOpenNProgress) && nProgress.done(); unref(getOpenNProgress) && nProgress.done();
return true; return true;
}); });