|
@@ -156,7 +156,8 @@ export default {
|
156
|
156
|
});
|
157
|
157
|
}else{//获取用户信息
|
158
|
158
|
getWxConfig((authInfo)=>{
|
159
|
|
- let url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${authInfo.corpid}&redirect_uri=${window.location.href+'&againJump=true'}&response_type=code&scope=snsapi_base&state=1&agentid=${authInfo.agent_id}#wechat_redirect`;
|
|
159
|
+ let redirect_uri = encodeURI(window.location.href+'&againJump=true')
|
|
160
|
+ let url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${authInfo.corpid}&redirect_uri=${redirect_uri}&response_type=code&scope=snsapi_base&state=1&agentid=${authInfo.agent_id}#wechat_redirect`;
|
160
|
161
|
let link = document.createElement("a");
|
161
|
162
|
link.href = url;
|
162
|
163
|
document.body.appendChild(link);
|