浏览代码

更改回去

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