优化

pull/48/head
smallbun 2023-09-13 21:44:59 +08:00
parent 26b9a76484
commit aed55d4cdb
1 changed files with 1 additions and 1 deletions

View File

@ -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,