Browse Source

更改回去

Lijy 2 years ago
parent
commit
d61d99452c

+ 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