yuanyiming 1 jaar geleden
bovenliggende
commit
08383f1178
1 gewijzigde bestanden met toevoegingen van 18 en 18 verwijderingen
  1. 18 18
      src/permission.js

+ 18 - 18
src/permission.js

@@ -58,30 +58,30 @@ router.beforeEach(async(to, from, next) => {
 
         } else {
             // setToken('2021400203')//yym
-            setToken("201901766");//qgt    
+            // setToken("201901766");//qgt    
         
-            userLogin((isLogin)=>{    
-              getSystemState(to,()=>{
-                if(!isLogin&&to.name!='resultShowDetail'){
-                  store.commit('getPlanEndProjectData');
-                }
-                next()
-              })
-            });
+            // userLogin((isLogin)=>{    
+            //   getSystemState(to,()=>{
+            //     if(!isLogin&&to.name!='resultShowDetail'){
+            //       store.commit('getPlanEndProjectData');
+            //     }
+            //     next()
+            //   })
+            // });
             window.location.href = "http://10.16.30.130/sso/caslogin.jsp";
         }
     } catch {
         // setToken('2021400203')//yym
-        setToken("201901766");//qgt
+        // setToken("201901766");//qgt
 
-        userLogin((isLogin)=>{
-          getSystemState(to,()=>{
-            if(!isLogin&&to.name!='resultShowDetail'){
-              store.commit('getPlanEndProjectData');
-            }
-            next()
-          })
-        });
+        // userLogin((isLogin)=>{
+        //   getSystemState(to,()=>{
+        //     if(!isLogin&&to.name!='resultShowDetail'){
+        //       store.commit('getPlanEndProjectData');
+        //     }
+        //     next()
+        //   })
+        // });
         window.location.href = "http://10.16.30.130/sso/caslogin.jsp";
     }
     // determine whether the user has logged in