feat: 更新重置密码表单组件,使用新的路由钩子以提升导航功能
All checks were successful
Push to Helm Chart Repository / build (push) Successful in 14s

This commit is contained in:
2025-09-24 12:51:05 +08:00
parent f2f3e90c4d
commit 59d39e0e07

View File

@ -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("")