From be4e8f7a0a2d01dd3ebcc68757f3e976653cb700 Mon Sep 17 00:00:00 2001 From: Jimmy Liow Date: Mon, 14 Oct 2024 11:42:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BC=80=E5=8F=91=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E8=AE=BE=E7=BD=AE=20local=20storage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dingding/Login.jsx | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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({