From a59a7ace15dda65041f933115fdddd6428f73248 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Mon, 24 Jul 2023 11:47:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E7=94=A8=E6=88=B7ID=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E6=8F=90=E7=A4=BA=E4=B8=8D=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1028055 --user=宋昌昌 【系统设置】创建用户-ID默认提示不支持中文-输入中文后提示不支持特殊字符-提示信息不一致 https://www.tapd.cn/55049933/s/1396414 --- framework/sdk-parent/frontend/src/i18n/lang/en-US.js | 1 + framework/sdk-parent/frontend/src/i18n/lang/zh-CN.js | 1 + framework/sdk-parent/frontend/src/i18n/lang/zh-TW.js | 1 + system-setting/frontend/src/business/system/user/EditUser.vue | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/framework/sdk-parent/frontend/src/i18n/lang/en-US.js b/framework/sdk-parent/frontend/src/i18n/lang/en-US.js index d73808de15..914e4ec504 100644 --- a/framework/sdk-parent/frontend/src/i18n/lang/en-US.js +++ b/framework/sdk-parent/frontend/src/i18n/lang/en-US.js @@ -1064,6 +1064,7 @@ const message = { input_phone: "Please enter phone number", special_characters_are_not_supported: "Special characters are not supported", + chinese_characters_are_not_supported: "Chinese characters are not supported", mobile_number_format_is_incorrect: "Phone number format is incorrect", email_format_is_incorrect: "Email format is incorrect", delete_confirm: "Are you sure you want to delete this User?", diff --git a/framework/sdk-parent/frontend/src/i18n/lang/zh-CN.js b/framework/sdk-parent/frontend/src/i18n/lang/zh-CN.js index 85b521ad17..ab4e3e4a42 100644 --- a/framework/sdk-parent/frontend/src/i18n/lang/zh-CN.js +++ b/framework/sdk-parent/frontend/src/i18n/lang/zh-CN.js @@ -1035,6 +1035,7 @@ const message = { input_password: "请输入密码", input_phone: "请输入电话号码", special_characters_are_not_supported: "不支持特殊字符", + chinese_characters_are_not_supported: "不支持中文字符", mobile_number_format_is_incorrect: "电话号码格式不正确", email_format_is_incorrect: "邮箱格式不正确", delete_confirm: "这个用户确定要删除吗?", diff --git a/framework/sdk-parent/frontend/src/i18n/lang/zh-TW.js b/framework/sdk-parent/frontend/src/i18n/lang/zh-TW.js index 28a824e32f..061720c71e 100644 --- a/framework/sdk-parent/frontend/src/i18n/lang/zh-TW.js +++ b/framework/sdk-parent/frontend/src/i18n/lang/zh-TW.js @@ -1034,6 +1034,7 @@ const message = { input_password: "請輸入密碼", input_phone: "請輸入電話號碼", special_characters_are_not_supported: "不支持特殊字符", + chinese_characters_are_not_supported: "不支持中文字符", mobile_number_format_is_incorrect: "電話號碼格式不正確", email_format_is_incorrect: "郵箱格式不正確", delete_confirm: "這個用戶確定要刪除嗎?", diff --git a/system-setting/frontend/src/business/system/user/EditUser.vue b/system-setting/frontend/src/business/system/user/EditUser.vue index fce7dd6bdb..4308e14726 100644 --- a/system-setting/frontend/src/business/system/user/EditUser.vue +++ b/system-setting/frontend/src/business/system/user/EditUser.vue @@ -138,7 +138,7 @@ export default { { required: true, pattern: '^[^\u4e00-\u9fa5]+$', - message: this.$t('user.special_characters_are_not_supported'), + message: this.$t('user.chinese_characters_are_not_supported'), trigger: 'blur' } ],