优化身份提供商

pull/82/head^2
awenes 2024-04-04 22:48:07 +08:00
parent 60d3a393f0
commit fbe42cc7bc
3 changed files with 3 additions and 4 deletions

View File

@ -29,9 +29,8 @@ export const ICON_LIST = {
wechat_work: <IconFont name="icon-qiyeweixin" />,
wechat_qr: <IconFont name="icon-weixin" />,
wechat_webpage: <IconFont name="icon-weixin" />,
dingtalk_qr: <IconFont name="icon-dingtalk" />,
dingtalk_oauth: <IconFont name="icon-dingtalk" />,
wechatwork_qr: <IconFont name="icon-qiyeweixin" />,
wechatwork_oauth: <IconFont name="icon-qiyeweixin" />,
feishu_oauth: <IconFont name="icon-feishu" />,
qq_oauth: <IconFont name="icon-qq" />,
gitee_oauth: <IconFont name="icon-gitee" />,

View File

@ -31,7 +31,7 @@ export const ICON_LIST = {
wechat_qr: <IconFont name="icon-weixin" />,
dingtalk_qr: <IconFont name="icon-dingtalk" />,
dingtalk_oauth: <IconFont name="icon-dingtalk" />,
wechatwork_qr: <IconFont name="icon-qiyeweixin" />,
wechatwork_oauth: <IconFont name="icon-qiyeweixin" />,
feishu_oauth: <IconFont name="icon-feishu" />,
qq_oauth: <IconFont name="icon-qq" />,
gitee_oauth: <IconFont name="icon-gitee" />,

View File

@ -23,7 +23,7 @@ const WeWorkOrCode = (props: { code: string }) => {
const { code } = props;
const query = queryString.parse(history.location.search);
const { redirect_uri } = query as { redirect_uri: string };
let path = `/api/v1/authorization/wechatwork_qr/${code}`;
let path = `/api/v1/authorization/wechatwork_oauth/${code}`;
if (redirect_uri) {
path = `${path}?redirect_uri=${redirect_uri}`;
}