소스 검색

'登录页静态(测试)'

哥哥玩剑魂呢 3 년 전
부모
커밋
5bc8a79776
1개의 변경된 파일20개의 추가작업 그리고 19개의 파일을 삭제
  1. 20 19
      src/views/login/index3.vue

+ 20 - 19
src/views/login/index3.vue

@@ -43,26 +43,27 @@ export default {
   components: { pastDue },
   watch: {},
   created() {
+     console.log('登录页');
      console.log(cookGetToken());
-    if (cookGetToken()) {
-      this.$store.commit("SET_TOKEN", token);
-      localStorage.setItem(
-        "Experience_data",
-        JSON.stringify({ if: false, name: "" })
-      );
-      console.log(cookGetToken());
-      // this.$http("get", process.env.BASE_API + "/api/employee/detail").then(
-      //   res => {
-      //     if (res.data.code == 1) {
-      //       console.log(res);
-      //     }
-      //   }
-      // );
-      wxAuth(true);
-    }else{
-      console.log('无Token')
-      window.location.href = process.env.BASE_API;//重新授权
-    }
+    // if (cookGetToken()) {
+    //   this.$store.commit("SET_TOKEN", token);
+    //   localStorage.setItem(
+    //     "Experience_data",
+    //     JSON.stringify({ if: false, name: "" })
+    //   );
+    //   console.log(cookGetToken());
+    //   // this.$http("get", process.env.BASE_API + "/api/employee/detail").then(
+    //   //   res => {
+    //   //     if (res.data.code == 1) {
+    //   //       console.log(res);
+    //   //     }
+    //   //   }
+    //   // );
+    //   wxAuth(true);
+    // }else{
+    //   console.log('无Token')
+    //   window.location.href = process.env.BASE_API;//重新授权
+    // }
   },
   mounted() {},
   methods: {},