From c54918acc4e2f7eb34c6a8565777a7e67d21e140 Mon Sep 17 00:00:00 2001
From: zhaoxiaoqiang <287285524@qq.com>
Date: Fri, 12 Aug 2022 15:32:19 +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