Merge remote-tracking branch 'origin/main'

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

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

Loading…
Cancel
Save