Browse Source

城市体检-新增bug修改20250418-01

zhiyuan-007 6 days ago
parent
commit
7ba0dabfc8
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/permission.ts

+ 3 - 3
src/permission.ts

@@ -12,11 +12,11 @@ NProgress.configure({ showSpinner: false });
 const whiteList = ['/login', '/login_hmcs', '/login_cstj', '/register', '/social-callback'];
 
 router.beforeEach(async (to, from, next) => {
-  if(to.path == from.path){
-    return;
-  }
   NProgress.start();
   if (getToken()) {
+    if(to.path == from.path){
+      return;
+    }
     to.meta.title && useSettingsStore().setTitle(to.meta.title);
     /* has token*/
     if (to.path === '/login'||to.path === '/login_hxcs'||to.path === '/login_cstj') {