fix(css): fix version

This commit is contained in:
2026-02-10 12:23:47 +08:00
parent 8c033066af
commit 2696ec8692
21 changed files with 658 additions and 194 deletions

View File

@@ -21,7 +21,7 @@ const LoginFormCard = (props: {
}) => {
const [tab, setTab] = React.useState<"login" | "register">("login");
const [captcha, setCaptcha] = React.useState("");
const [captchaKey, setCaptchaKey] = React.useState(() => String(Date.now()));
const [captchaKey, setCaptchaKey] = React.useState("");
const [loginExternalError, setLoginExternalError] = React.useState<
string | null
>(null);
@@ -30,6 +30,10 @@ const LoginFormCard = (props: {
password: string;
} | null>(null);
React.useEffect(() => {
setCaptchaKey(String(Date.now()));
}, []);
function refreshCaptcha() {
setCaptchaKey(String(Date.now()));
}