Skip to content

Commit

Permalink
fix: 修复 加载路由组件异常后切换路由loading不关闭bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yuntian001 committed Jan 6, 2023
1 parent f733260 commit dba02e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/router/guard/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function createProgressGuard(router: Router) {
router.beforeEach(async (to, from) => {
remove();
start(to.matched.length);
closeLoading(false, from.matched.length, 'layout');
closeLoading(true, from.matched.length, 'layout');
loading({}, to.matched.length, 'layout');
return true;
});
Expand Down

0 comments on commit dba02e2

Please sign in to comment.