登录页与落地页细节调整

This commit is contained in:
2569718930@qq.com
2026-05-25 00:57:55 +08:00
parent e36fb1e97b
commit 8957185062
2 changed files with 18 additions and 0 deletions
+12
View File
@@ -40,6 +40,18 @@ export function LoginClient({ nextPath }: LoginClientProps) {
const [resetSent, setResetSent] = useState(false);
const [showPassword, setShowPassword] = useState(false);
useEffect(() => {
if (typeof window !== "undefined") {
const params = new URLSearchParams(window.location.search);
const m = params.get("mode");
if (m === "signup") {
setMode("signup");
} else if (m === "login") {
setMode("login");
}
}
}, []);
const supabaseReady = hasSupabasePublicEnv();
const isLogin = mode === "login";
const siteOrigin =