优化身份提供商

pull/82/head^2
awenes 8 months ago
parent fbe42cc7bc
commit 2a55f8967e

@ -39,7 +39,7 @@ export enum IDP_TYPE {
GITHUB_OAUTH = 'github_oauth',
ALIPAY_OAUTH = 'alipay_oauth',
WEIBO_OAUTH = 'weibo_oauth',
WECHATWORK_QR = 'wechatwork_qr',
WECHATWORK_QR = 'wechatwork_oauth',
}
export enum SESSION_STATUS {

@ -51,9 +51,9 @@ const Index = (props: { code: string; name: string; type: IDP_TYPE | string }) =
<Tabs activeKey={type} items={[{ label: name, key: type }]} />
<div className={'qr'}>
<div className={'code'}>
{/*企业微信扫码*/}
{/*企业微信*/}
{type === IDP_TYPE.WECHATWORK_QR && <WeWorkQrCode code={code} />}
{/*钉钉扫码*/}
{/*钉钉认证*/}
{type === IDP_TYPE.DINGTALK_QR && <DingTalkQrCode code={code} />}
{/*微信扫码*/}
{type === IDP_TYPE.WECHAT_QR && <WeChatQrCode code={code} />}

Loading…
Cancel
Save