豪豪 8 mesi fa
parent
commit
47422fccf7
1 ha cambiato i file con 7 aggiunte e 7 eliminazioni
  1. 7 7
      src/router/index.js

+ 7 - 7
src/router/index.js

@@ -47,12 +47,12 @@ router.beforeEach((to,from) =>{
     let userStore = useUserStore();
     let userInfo =  localStorage.getItem('exchangeUserInfo');
     userStore.userInfo = JSON.parse(userInfo);
-    if(!userInfo ||userInfo == "null"||userInfo == null||userInfo == ""){
-        ElMessageBox.alert("请登录后操作",name,{
-            type:"warning",
-            confirmButtonText: "确定",
-        })
-        window.location.href='https://cimweb.zjw.sh.cegn.cn:2007/cim-home/#/login';
-    }
+    // if(!userInfo ||userInfo == "null"||userInfo == null||userInfo == ""){
+    //     ElMessageBox.alert("请登录后操作",name,{
+    //         type:"warning",
+    //         confirmButtonText: "确定",
+    //     })
+    //     // window.location.href='https://cimweb.zjw.sh.cegn.cn:2007/cim-home/#/login';
+    // }
 })
 export default router