fix: update WeCom QR code iframe URL to use state instead of accessToken
parent
a568cfe893
commit
153a3faa8a
|
|
@ -40,7 +40,7 @@ const init = async () => {
|
||||||
const redirectUri = encodeURIComponent(data.redirectUri)
|
const redirectUri = encodeURIComponent(data.redirectUri)
|
||||||
console.log('redirectUri', data.redirectUri)
|
console.log('redirectUri', data.redirectUri)
|
||||||
// 手动构建生成二维码的url
|
// 手动构建生成二维码的url
|
||||||
iframeUrl.value = `https://login.work.weixin.qq.com/wwlogin/sso/login?login_type=CorpApp&appid=${data.corpId}&agentid=${data.agentId}&redirect_uri=${redirectUri}&accessToken=${accessToken}&state=fit2cloud-wecom-qr&lang=${lang}&lang=${lang}&panel_size=small`
|
iframeUrl.value = `https://login.work.weixin.qq.com/wwlogin/sso/login?login_type=CorpApp&appid=${data.corpId}&agentid=${data.agentId}&redirect_uri=${redirectUri}&state=${accessToken}&lang=${lang}&lang=${lang}&panel_size=small`
|
||||||
}
|
}
|
||||||
|
|
||||||
init()
|
init()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue