From f2f3e90c4dba9893a2e92ae373043d4f87a239e4 Mon Sep 17 00:00:00 2001 From: Snowykami Date: Wed, 24 Sep 2025 12:32:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9C=A8=E9=87=8D=E7=BD=AE=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E9=A1=B5=E9=9D=A2=E6=B7=BB=E5=8A=A0=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E5=92=8C=E6=B3=A8=E5=86=8C=E9=93=BE=E6=8E=A5=EF=BC=9B=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E4=B8=AD=E6=96=87=E7=BF=BB=E8=AF=91=E4=BB=A5=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E2=80=9C=E6=B3=A8=E5=86=8C=E2=80=9D=E6=96=87=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../auth/reset-password/reset-password-form.tsx | 13 +++++++++++-- web/src/locales/zh-CN.json | 1 + 2 files changed, 12 insertions(+), 2 deletions(-) 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 a1f627b..e9367aa 100644 --- a/web/src/components/auth/reset-password/reset-password-form.tsx +++ b/web/src/components/auth/reset-password/reset-password-form.tsx @@ -16,8 +16,9 @@ import { useTranslations } from "next-intl" import { toast } from "sonner" import { InputOTPControlled } from "@/components/common/input-otp" import { BaseErrorResponse } from "@/models/resp" -import { loginPath } from "@/hooks/use-route" +import { loginPath, registerPath } from "@/hooks/use-route" import router from "next/router" +import Link from "next/link" export function ResetPasswordForm({ className, @@ -108,8 +109,16 @@ export function ResetPasswordForm({ > {t("title")} +
+ + {commonT("login")} + + {" "} + + {commonT("register")} + +
- {/* TODO 回归登录和注册链接 */} diff --git a/web/src/locales/zh-CN.json b/web/src/locales/zh-CN.json index 739a786..4371301 100644 --- a/web/src/locales/zh-CN.json +++ b/web/src/locales/zh-CN.json @@ -64,6 +64,7 @@ "minutesAgo": "分钟前", "obtain": "获取", "password": "密码", + "register": "注册", "secondsAgo": "秒前", "send_verify_code": "发送验证码", "submit": "提交",