From 270baa6b3f0f69e7797f45d88fdc81ad5a108a77 Mon Sep 17 00:00:00 2001 From: lq1405 <2769838458@qq.com> Date: Wed, 12 Feb 2025 12:32:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=99=BB=E5=BD=95=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E6=B3=A8=E5=86=8C=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locales/zh-CN/pages.ts | 1 + src/pages/User/Login/index.tsx | 32 +++++++++++++++++++++++--------- 2 files changed, 24 insertions(+), 9 deletions(-) diff --git a/src/locales/zh-CN/pages.ts b/src/locales/zh-CN/pages.ts index 8661cae..fa8425e 100644 --- a/src/locales/zh-CN/pages.ts +++ b/src/locales/zh-CN/pages.ts @@ -19,6 +19,7 @@ export default { 'pages.getCaptchaSecondText': '秒后重新获取', 'pages.login.rememberMe': '自动登录', 'pages.login.forgotPassword': '忘记密码 ?', + 'pages.login.notRegister': '没有账号?开始注册!', 'pages.login.submit': '登录', 'pages.login.loginWith': '其他登录方式 :', 'pages.login.registerAccount': '注册账户', diff --git a/src/pages/User/Login/index.tsx b/src/pages/User/Login/index.tsx index 4fc1216..00fabae 100644 --- a/src/pages/User/Login/index.tsx +++ b/src/pages/User/Login/index.tsx @@ -346,17 +346,31 @@ const Login: React.FC = () => { - { - alert("请联系管理员重置密码") +
+ { + let baseUrl = window.location.origin; + window.location.href = baseUrl + "/user/register"; + }} + + > + + + + { + alert("请联系管理员重置密码") + }} + + > + + +
- > - -