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("请联系管理员重置密码") + }} + + > + + +
- > - -