From f183f85642efa96aba296a589946b98370e7f6e2 Mon Sep 17 00:00:00 2001
From: zhaoxiaoqiang <287285524@qq.com>
Date: Fri, 12 Aug 2022 10:19:44 +0800
Subject: [PATCH] openId自动登录

---
 src/views/user/front-login.vue |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/views/user/front-login.vue b/src/views/user/front-login.vue
index ffc9222..3f00da9 100644
--- a/src/views/user/front-login.vue
+++ b/src/views/user/front-login.vue
@@ -2,7 +2,7 @@
  * @Author: 小明丶
  * @Date: 2020-06-04 09:55:50
  * @LastEditors: zxq
- * @LastEditTime: 2022-08-05 09:43:56
+ * @LastEditTime: 2022-08-12 10:13:09
  * @Description:
 -->
 <template>
@@ -30,6 +30,7 @@
     // localStorage.axx_ins_client_userMation = '{"openid":"oGGPLs2yZ5tiBnB9iYcZrV60DoqM","nickname":"乌卡拉卡","sex":"1","province":"四川","city":"成都","country":"中国","headimgurl":"http://thirdwx.qlogo.cn/mmopen/vi_32/sYsBGsncFia9ql7K5stRibY61BSjDkPkNQFiasqdHiczTwbnX7JeZhcrp49RZD9icFTDLd2JqUjIrHHVw0f52kE4Uibw/132"}'
     // this.$router.push("/login");
     //本地是否存储有openId,有就调用openId登录
+    console.log(localStorage.axx_ins_client_openId)
     if (localStorage.axx_ins_client_openId && localStorage.axx_ins_client_openId != undefined) {
       //this.$router.push("/login");
       this.openIdLogin({
@@ -37,7 +38,7 @@
           openId: localStorage.axx_ins_client_openId
         });
     } else {
-     this.$router.push("/login");
+      // this.$router.push("/login");
     }
   },
   methods: {

--
Gitblit v1.8.0