R25-1 R25-2 R25-3: 修复登录改密并收口静态缓存

这个提交包含在:
2026-03-22 16:17:28 +08:00
父节点 357bdc401a
当前提交 9cb1f5d63b
共修改 9 个文件,包含 88 行新增和 10 行删除
+3 -3
查看文件
@@ -27,8 +27,8 @@ export function LoginPage() {
const [searchParams] = useSearchParams();
const { login } = useAuth();
const [identifier, setIdentifier] = useState("[email protected]");
const [password, setPassword] = useState("EmployeePassword1234");
const [identifier, setIdentifier] = useState("");
const [password, setPassword] = useState("");
const [submitting, setSubmitting] = useState(false);
const [error, setError] = useState("");
@@ -60,7 +60,7 @@ export function LoginPage() {
}
} catch (err) {
if (isApiError(err)) {
setError(`${err.code}: ${mapApiErrorMessage(err.code, err.details, err.message)}`);
setError(mapApiErrorMessage(err.code, err.details, err.message));
} else if (err instanceof TypeError) {
setError("无法连接后端服务,请确认 server 已启动(http://127.0.0.1:3000)。");
} else {