refactor(*): 稳定期治理 - 收敛核心架构、错误语义并修复跨项目数据竞态

This commit is contained in:
ddCat
2026-09-09 22:02:10 +08:00
parent bacd502f5c
commit b5f3413ded
298 changed files with 12681 additions and 26428 deletions

View File

@@ -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]);