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