From 59d39e0e071564b716cfe5caf651493fa43721c1 Mon Sep 17 00:00:00 2001 From: Snowykami Date: Wed, 24 Sep 2025 12:51:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E9=87=8D=E7=BD=AE?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E8=A1=A8=E5=8D=95=E7=BB=84=E4=BB=B6=EF=BC=8C?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E6=96=B0=E7=9A=84=E8=B7=AF=E7=94=B1=E9=92=A9?= =?UTF-8?q?=E5=AD=90=E4=BB=A5=E6=8F=90=E5=8D=87=E5=AF=BC=E8=88=AA=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/auth/reset-password/reset-password-form.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/components/auth/reset-password/reset-password-form.tsx b/web/src/components/auth/reset-password/reset-password-form.tsx index e9367aa..984eab0 100644 --- a/web/src/components/auth/reset-password/reset-password-form.tsx +++ b/web/src/components/auth/reset-password/reset-password-form.tsx @@ -17,7 +17,7 @@ import { toast } from "sonner" import { InputOTPControlled } from "@/components/common/input-otp" import { BaseErrorResponse } from "@/models/resp" import { loginPath, registerPath } from "@/hooks/use-route" -import router from "next/router" +import {useRouter} from "next/navigation" import Link from "next/link" export function ResetPasswordForm({ @@ -26,6 +26,7 @@ export function ResetPasswordForm({ }: React.ComponentProps<"div">) { const t = useTranslations('ResetPassword') const commonT = useTranslations('Common') + const router = useRouter() const [email, setEmail] = useState("") const [verifyCode, setVerifyCode] = useState("") const [newPassword, setNewPassword] = useState("")