From 8360b1d6886b5639cf43da5ab866156d140a0f01 Mon Sep 17 00:00:00 2001 From: HelKim <30397458+HelKim@users.noreply.github.com> Date: Thu, 18 Mar 2021 21:58:20 +0800 Subject: [PATCH] fix(progress): fix progress sometimes cannot done (#388) --- src/router/guard/progressGuard.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/router/guard/progressGuard.ts b/src/router/guard/progressGuard.ts index 9b3a4ce3761..f04048223f2 100644 --- a/src/router/guard/progressGuard.ts +++ b/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; });