Refactor login initialization logic to remove unused configuration check for bd_vid and simplify OAuth visibility condition. (#5283)

This commit is contained in:
Zhuangzai fa
2025-07-22 17:21:12 +08:00
committed by GitHub
parent 8e94fdb988
commit 5c95fa2b9a
2 changed files with 1 additions and 8 deletions

View File

@@ -116,7 +116,7 @@ const FormLayout = ({ children, setPageType, pageType }: Props) => {
);
const show_oauth = useMemo(
() => !getBdVId() && !!(feConfigs?.sso?.url || oAuthList.length > 0),
() => !!(feConfigs?.sso?.url || oAuthList.length > 0),
[feConfigs?.sso?.url, oAuthList.length]
);