Commit 98cc1a4a by zhangleyuan

feat:处理重定向的路径

parent 2fbefe86
......@@ -38,7 +38,7 @@ class Authorize extends React.Component {
)
}
wechatAuthorize = () => {
let path = window.location.origin + window.location.pathname;
let path = window.location.href;
let htmlUrl = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + AppId +
'&redirect_uri=' + encodeURIComponent(path) +
'&response_type=code&scope=snsapi_userinfo&state=state#wechat_redirect';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment