refactor(*): 稳定期治理 - 收敛核心架构、错误语义并修复跨项目数据竞态
This commit is contained in:
@@ -30,7 +30,11 @@ export default function LoginPage() {
|
||||
useEffect(() => {
|
||||
void getAuthSettings()
|
||||
.then((settings) => setLinuxdoEnabled(settings.linuxdoEnabled))
|
||||
.catch(() => undefined);
|
||||
.catch((error) => {
|
||||
// 这是登录页的展示配置读取:失败时明确隐藏第三方入口,
|
||||
// 账号密码登录仍可用;不能无痕地把配置读取失败当成成功。
|
||||
console.warn("读取登录方式配置失败,已隐藏第三方登录入口", error);
|
||||
});
|
||||
const oauthError = params.get("oauth_error");
|
||||
if (oauthError) message.error(oauthError);
|
||||
}, [message, params]);
|
||||
|
||||
Reference in New Issue
Block a user