소스 검색

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

HelKim 4 년 전
부모
커밋
8360b1d688
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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;
   });