소스 검색

更改回去

Lijy 2 년 전
부모
커밋
d61d99452c
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      fhKeeper/formulahousekeeper/timesheet_h5/src/views/login/index.vue

+ 4 - 4
fhKeeper/formulahousekeeper/timesheet_h5/src/views/login/index.vue

@@ -213,10 +213,10 @@
             }
         },
         created() {
-            // if (localStorage.userInfo != null) {
-            //     this.$router.push("/index").catch(err => { console.log(err, '错误4')});
-            // }
-            localStorage.clear()
+            if (localStorage.userInfo != null) {
+                this.$router.push("/index").catch(err => { console.log(err, '错误4')});
+            }
+            // localStorage.clear()
 
             // 米莱的用工号登录
             let windowHerf = window.location.href