From 8fd6cfba4f456f637461a496c64db966f12b6fff Mon Sep 17 00:00:00 2001 From: wenyann <64353056+wenyann@users.noreply.github.com> Date: Thu, 16 Jul 2020 11:19:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/components/settings/system/EmailSetting.vue | 9 ++++++--- frontend/src/i18n/en-US.js | 3 +++ frontend/src/i18n/zh-CN.js | 3 +++ frontend/src/i18n/zh-TW.js | 3 +++ 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/frontend/src/business/components/settings/system/EmailSetting.vue b/frontend/src/business/components/settings/system/EmailSetting.vue index 1854c41d6f..ef768436da 100644 --- a/frontend/src/business/components/settings/system/EmailSetting.vue +++ b/frontend/src/business/components/settings/system/EmailSetting.vue @@ -92,19 +92,22 @@ host: [ { required: true, - message: '' + message: this.$t('system_parameter_setting.host'), + trigger: ['change', 'blur'] }, ], port: [ { required: true, - message: ' ' + message: this.$t('system_parameter_setting.port'), + trigger: ['change', 'blur'] } ], account: [ { required: true, - message: ' ' + message: this.$t('system_parameter_setting.account'), + trigger: ['change', 'blur'] }] } } diff --git a/frontend/src/i18n/en-US.js b/frontend/src/i18n/en-US.js index ec8cb15dc3..b553ea54e9 100644 --- a/frontend/src/i18n/en-US.js +++ b/frontend/src/i18n/en-US.js @@ -627,6 +627,9 @@ export default { SSL: 'Turn on SSL (if the SMTP port is 465, you usually need to enable SSL)', TLS: 'Turn on TLS (if the SMTP port is 587, you usually need to enable TLS)', SMTP: 'Anonymous SMTP or not', + host: 'Host number cannot be empty', + port: 'Port cannot be empty', + account: 'Account cannot be empty', }, i18n: { diff --git a/frontend/src/i18n/zh-CN.js b/frontend/src/i18n/zh-CN.js index b3498eb90c..cf7a447305 100644 --- a/frontend/src/i18n/zh-CN.js +++ b/frontend/src/i18n/zh-CN.js @@ -626,6 +626,9 @@ export default { SSL: '开启SSL(如果SMTP端口是465,通常需要启用SSL)', TLS: '开启TLS(如果SMTP端口是587,通常需要启用TLS)', SMTP: '是否匿名 SMTP', + host: '主机号不能为空', + port: '端口号不能为空', + account: '账户不能为空', }, i18n: { home: '首页' diff --git a/frontend/src/i18n/zh-TW.js b/frontend/src/i18n/zh-TW.js index a2b11dbeb8..bb2fb7f592 100644 --- a/frontend/src/i18n/zh-TW.js +++ b/frontend/src/i18n/zh-TW.js @@ -626,6 +626,9 @@ export default { SSL: '開啟SSL(如果SMTP埠是465,通常需要啟用SSL)', TLS: '開啟TLS(如果SMTP埠是587,通常需要啟用TLS)', SMTP: '是否匿名 SMTP', + host: '主機號不能為空', + port: '埠號不能為空', + account: '帳戶不能為空', }, i18n: { home: '首頁'