From 63bc3b1dfcf7a9e16ad0df52c6525460a000f32c Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期五, 21 十月 2022 11:57:52 +0800
Subject: [PATCH] 34
---
src/views/login/index.vue | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index b9c2686..59bd95b 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -119,9 +119,9 @@
ajaxGet('wechat/code',{code}).then((re:any)=>{
console.log(re)
userInfo.setUserInfo({openid:re.openid,nickname:re.nickname,headimgurl:re.headimgurl})
- const openid = re.openid
- if (openid) { // 检查登录
- ajaxPost('patient/info/wechatLogin',{openid},config).then((re:any)=>{
+ const openId = re.openid
+ if (openId) { // 检查登录
+ ajaxPost('patient/info/wechatLogin',{openId},config).then((re:any)=>{
console.log('openid换的accesstoken=',re)
if (re===''){
Toast('请填写表单登录。。')
--
Gitblit v1.8.0