From a5b43701b5b10db52ea0a78ffa24f474b1d70432 Mon Sep 17 00:00:00 2001 From: zhaoxiaoqiang <287285524@qq.com> Date: Thu, 04 Aug 2022 10:48:00 +0800 Subject: [PATCH] 登录修改 --- src/utils/wechat.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/wechat.js b/src/utils/wechat.js index f07446b..e46bb08 100644 --- a/src/utils/wechat.js +++ b/src/utils/wechat.js @@ -19,7 +19,7 @@ // var url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appid}&redirect_uri=${redirect_uri}&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect` // // 判断用户是否已经授权 -// if(window.localStorage.edu_ins_client_openId == 'undefined' || !localStorage.edu_ins_client_openId){ +// if(window.localStorage.axx_ins_client_openId == 'undefined' || !localStorage.axx_ins_client_openId){ // window.location.href = url // // 在回调页面去获取到授权返回的code,并且传递给后端 // } @@ -33,7 +33,7 @@ // 拼接微信授权页面链接 var url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${this.appid}&redirect_uri=${this.redirect_uri}&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect` // 判断用户是否已经授权 - if(window.localStorage.edu_ins_client_openId == 'undefined' || !localStorage.edu_ins_client_openId){ + if(window.localStorage.axx_ins_client_openId == 'undefined' || !localStorage.axx_ins_client_openId){ window.location.href = url // 在回调页面去获取到授权返回的code,并且传递给后端 } -- Gitblit v1.8.0