diff --git a/src/views/dingding/Login.jsx b/src/views/dingding/Login.jsx index e6ccfb7..6b24150 100644 --- a/src/views/dingding/Login.jsx +++ b/src/views/dingding/Login.jsx @@ -18,7 +18,22 @@ function Login() { const [errorMsg, setErrorMsg] = useState('') - if (dd.env.platform === 'notInDingTalk') { + const dingTalkPlatForm = dd.env.platform + + if (import.meta.env.DEV) { + return ( + + ]} + /> + + ) + } + + if (dingTalkPlatForm === 'notInDingTalk') { window.location = redirectUrl } else { dd.requestAuthCode({