Skip to content

Commit 8360b1d

Browse files
authored
fix(progress): fix progress sometimes cannot done (#388)
1 parent b67cf22 commit 8360b1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/router/guard/progressGuard.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ export function createProgressGuard(router: Router) {
1515
return true;
1616
});
1717

18-
router.afterEach(async (to) => {
19-
if (to.meta.loaded) return true;
18+
router.afterEach(async () => {
19+
// if (to.meta.loaded) return true;
2020
unref(getOpenNProgress) && nProgress.done();
2121
return true;
2222
});

0 commit comments

Comments
 (0)