Merge remote-tracking branch 'origin/main'

2.0/wai-server
Lei OT 10 months ago
commit 9b72216f61

@ -32,25 +32,25 @@ function Login() {
</Flex>
)
}
if (dingTalkPlatForm === 'notInDingTalk') {
window.location = redirectUrl
} else {
dd.requestAuthCode({
clientId: 'dingwgdx6emlxr3fcrg8',
corpId: 'ding48bce8fd3957c96b',
success: (res) => {
const { code } = res
navigate('/p/dingding/callback?state=jsapi-auth&authCode=' + code, {
replace: true,
})
},
fail: (error) => {
setErrorMsg(JSON.stringify(error))
},
complete: () => {},
})
}
window.location = redirectUrl
// if (dingTalkPlatForm === 'notInDingTalk') {
// window.location = redirectUrl
// } else {
// dd.requestAuthCode({
// clientId: 'dingl3jyntkazyg4coxf',
// corpId: 'ding48bce8fd3957c96b',
// success: (res) => {
// const { code } = res
// navigate('/p/dingding/callback?state=jsapi-auth&authCode=' + code, {
// replace: true,
// })
// },
// fail: (error) => {
// setErrorMsg(JSON.stringify(error))
// },
// complete: () => {},
// })
// }
return (
<Flex justify='center' align='center' gap='middle' vertical>

Loading…
Cancel
Save