zs 1 год назад
Родитель
Сommit
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(); //完成进度条
   })
 }