feat: 1.统一右侧抽屉关闭按钮布局 2.统一 UI 组件为 Ant Design 移除 radix-ui、floating-ui 组件 3. 修复 ESLint 文件格式错误的问题

This commit is contained in:
zhanjunhao
2026-11-10 14:08:10 +08:00
parent 28e924e371
commit 584728590b
202 changed files with 29195 additions and 12732 deletions
+5 -2
View File
@@ -177,7 +177,10 @@ const LoginForm = () => {
// 使用 StatusContext 获取最新状态,而不是从 localStorage 读取
const [statusState] = useContext(StatusContext);
const status = statusState?.status || {};
const status = React.useMemo(
() => statusState?.status || {},
[statusState?.status],
);
const statusLoaded = statusState?.status !== undefined;
// affCode 只需在挂载时提取一次,避免每次渲染都执行
@@ -222,7 +225,7 @@ const LoginForm = () => {
nextParams.delete('expired');
setSearchParams(nextParams, { replace: true });
}
}, []);
}, [searchParams, setSearchParams, t]);
const finishLogin = useCallback(
(data, successMessage) =>