mirror of https://gitee.com/topiam/eiam
⚡ 优化
parent
26b9a76484
commit
aed55d4cdb
|
@ -361,7 +361,7 @@ const IdentityProvider = () => {
|
|||
const { styles } = useStyle(prefixCls);
|
||||
|
||||
useMount(async () => {
|
||||
if (!type || !(type.toUpperCase() in IdentityProviderCategory)) {
|
||||
if (!type || !IdentityProviderCategory[type]) {
|
||||
setTabActiveKey(IdentityProviderCategory.social);
|
||||
history.push({
|
||||
pathname: location.pathname,
|
||||
|
|
Loading…
Reference in New Issue