diff --git a/frontend/src/components/user/profile/ProfileBalanceNotifyCard.vue b/frontend/src/components/user/profile/ProfileBalanceNotifyCard.vue index cfe1b332..797616bb 100644 --- a/frontend/src/components/user/profile/ProfileBalanceNotifyCard.vue +++ b/frontend/src/components/user/profile/ProfileBalanceNotifyCard.vue @@ -49,14 +49,16 @@ - +
{{ email }} - +
+ +
@@ -185,7 +187,7 @@ function addPendingEmail() { const email = newEmail.value.trim() if (!email) return if (email === props.userEmail || extraEmails.value.includes(email) || pendingEmails.value.some(p => p.email === email)) { - appStore.showError(t('common.error')) + appStore.showError(t('profile.balanceNotify.emailDuplicate')) return } pendingEmails.value.push({ email, codeSent: false, code: '', sending: false, verifying: false, countdown: 0, timer: null }) diff --git a/frontend/src/i18n/locales/en.ts b/frontend/src/i18n/locales/en.ts index 1b4cb9ea..ff77837e 100644 --- a/frontend/src/i18n/locales/en.ts +++ b/frontend/src/i18n/locales/en.ts @@ -929,6 +929,7 @@ export default { verifySuccess: 'Email added successfully', removeEmail: 'Remove', removeSuccess: 'Email removed', + emailDuplicate: 'This email already exists', } }, diff --git a/frontend/src/i18n/locales/zh.ts b/frontend/src/i18n/locales/zh.ts index ca091dd5..9eabb465 100644 --- a/frontend/src/i18n/locales/zh.ts +++ b/frontend/src/i18n/locales/zh.ts @@ -933,6 +933,7 @@ export default { verifySuccess: '邮箱添加成功', removeEmail: '移除', removeSuccess: '邮箱已移除', + emailDuplicate: '该邮箱已存在', } },