Explorar o código

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

HelKim %!s(int64=4) %!d(string=hai) anos
pai
achega
8360b1d688
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/router/guard/progressGuard.ts

+ 2 - 2
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;
   });