Commit f62ea124 by 吴娟华

'修改'

1 parent ab983ade
...@@ -78,6 +78,7 @@ const getSessionId = (redirectUrl, state) => { ...@@ -78,6 +78,7 @@ const getSessionId = (redirectUrl, state) => {
duration: 0 duration: 0
}) })
sessionStorage.setItem('GL_WX_APPID', params.appId) sessionStorage.setItem('GL_WX_APPID', params.appId)
sessionStorage.setItem('URL_PARAM', JSON.stringify(params))
console.log(redirectUrl) console.log(redirectUrl)
window.location.href = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${params.appId}&redirect_uri=${encodeURIComponent(redirectUrl)}&response_type=code&scope=${state}&state=${state}#wechat_redirect` window.location.href = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${params.appId}&redirect_uri=${encodeURIComponent(redirectUrl)}&response_type=code&scope=${state}&state=${state}#wechat_redirect`
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!