Skip to content

Commit 334c3d3

Browse files
committed
fix: include accessToken in WeCom QR code iframe URL
1 parent 2194b8b commit 334c3d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/src/views/chat/user-login/scanCompinents/wecomQrCode.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ const init = async () => {
3939
}
4040
const redirectUri = encodeURIComponent(data.redirectUri)
4141
console.log('redirectUri', data.redirectUri)
42+
console.log(accessToken)
4243
// 手动构建生成二维码的url
43-
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`
44+
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`
4445
}
4546
4647
init()

0 commit comments

Comments
 (0)