浏览代码

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