zs 1 年之前
父節點
當前提交
512d26f09e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/router/guard.js

+ 1 - 1
src/router/guard.js

@@ -148,8 +148,8 @@ export const registerBeforeRouter = async (router) => {
 
 export const registerAfterRouter = async (router) => {
   router.afterEach((to, form) => {
-    NProgress.done(); //完成进度条
     if (to.path === '/login') return
     // 请求该页面的权限
+    NProgress.done(); //完成进度条
   })
 }