From 4c6c4f27d606f12fd92a0a00930cb28e55a94170 Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Tue, 17 Dec 2024 15:09:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E5=8A=A8=E7=AB=AF=E6=9A=82?= =?UTF-8?q?=E6=97=B6=E4=B8=8D=E7=94=A8=E9=92=89=E9=92=89=E5=85=8D=E7=99=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dingding/Login.jsx | 38 ++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/views/dingding/Login.jsx b/src/views/dingding/Login.jsx index 6b24150..766e4e1 100644 --- a/src/views/dingding/Login.jsx +++ b/src/views/dingding/Login.jsx @@ -32,25 +32,25 @@ function Login() { ) } - - 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 (