From 398c2bfae9cc209ae2115ec65ed7ac07f84742bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C2=B4=C3=B3=C2=B8=C3=A7?= Date: Thu, 26 Feb 2026 17:04:19 +0800 Subject: [PATCH] aaa --- src/api/login.ts | 4 ++-- src/lang/en.ts | 2 +- src/lang/zh-cn.ts | 2 +- src/views/login/css/style.css | 6 +++--- src/views/login/less/style.less | 2 +- src/views/login/login.vue | 6 +++--- src/views/login/retrieve-password.vue | 6 +++--- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/api/login.ts b/src/api/login.ts index 3ce467f..d4ee3c9 100644 --- a/src/api/login.ts +++ b/src/api/login.ts @@ -71,9 +71,9 @@ export const Logout = () => { * @param data.verificationCode 验证码 * @returns 忘记密码成功后的token */ -export const ForgetPassword = (data) => { +export const ForgotPassword = (data) => { return request({ - url: '/api/user/forget-password', + url: '/api/user/forgot-password', method: 'post', loading: true, data diff --git a/src/lang/en.ts b/src/lang/en.ts index 63a3e50..856fecf 100644 --- a/src/lang/en.ts +++ b/src/lang/en.ts @@ -12,7 +12,7 @@ export default { enterName: 'Enter your name', enterEmail: 'Enter your email', enterPassword: 'Enter your password', - forgetPassword: 'Forget password?', + forgotPassword: 'Forget password?', pleaseInputName: 'Please input the name', nameLengthError: 'Name length must be between {min} and {max} characters', pleaseInputEmail: 'Please input the email', diff --git a/src/lang/zh-cn.ts b/src/lang/zh-cn.ts index 4ff6823..9d0a19c 100644 --- a/src/lang/zh-cn.ts +++ b/src/lang/zh-cn.ts @@ -13,7 +13,7 @@ export default { enterName: '请输入姓名', enterEmail: '请输入邮箱', enterPassword: '请输入密码', - forgetPassword: '忘记密码?', + forgotPassword: '忘记密码?', pleaseInputName: '请输入姓名', nameLengthError: '姓名长度必须在 {min} 到 {max} 个字符之间', pleaseInputEmail: '请输入邮箱', diff --git a/src/views/login/css/style.css b/src/views/login/css/style.css index 5287b37..8267683 100644 --- a/src/views/login/css/style.css +++ b/src/views/login/css/style.css @@ -145,9 +145,9 @@ --el-border-color: #dfdfdf; font-size: 1.4rem; } -.retrieve-password > .right > .box:deep(.el-form) .forgetPassword, -.register > .right > .box:deep(.el-form) .forgetPassword, -.login > .right > .box:deep(.el-form) .forgetPassword { +.retrieve-password > .right > .box:deep(.el-form) .forgotPassword, +.register > .right > .box:deep(.el-form) .forgotPassword, +.login > .right > .box:deep(.el-form) .forgotPassword { margin-top: -1.2rem; margin-bottom: 2rem; font-size: 1.6rem; diff --git a/src/views/login/less/style.less b/src/views/login/less/style.less index 9e6867a..a152651 100644 --- a/src/views/login/less/style.less +++ b/src/views/login/less/style.less @@ -125,7 +125,7 @@ font-size: 1.4rem; } - .forgetPassword { + .forgotPassword { margin-top: -1.2rem; margin-bottom: 2rem; font-size: 1.6rem; diff --git a/src/views/login/login.vue b/src/views/login/login.vue index 0ba000c..cc20264 100644 --- a/src/views/login/login.vue +++ b/src/views/login/login.vue @@ -32,8 +32,8 @@ name="password" /> -
- {{ $t('Login.forgetPassword') }} +
+ {{ $t('Login.forgotPassword') }}
@@ -92,7 +92,7 @@ router.back() } } - const onForgetPassword = () => { + const onForgotPassword = () => { router.push({ name: 'retrievepass' }) } const visibleCodeRef = ref(null) diff --git a/src/views/login/retrieve-password.vue b/src/views/login/retrieve-password.vue index 5ed7db7..50da820 100644 --- a/src/views/login/retrieve-password.vue +++ b/src/views/login/retrieve-password.vue @@ -55,7 +55,7 @@