diff --git a/src/router/guard/index.ts b/src/router/guard/index.ts index dd2d6874..f5ed2865 100644 --- a/src/router/guard/index.ts +++ b/src/router/guard/index.ts @@ -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; });