From 908b32f7b1c8c53864401e69294da910c4db0acf Mon Sep 17 00:00:00 2001 From: WangXu10 Date: Tue, 25 Jul 2023 10:59:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=AF=BC=E5=85=A5=E6=96=87=E4=BB=B6=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1027730 --user=王旭 【系统设置】github#25527,系统设置-用户上传文件 提示信息和实际上传的提示不匹配,看不出限制是多大 https://www.tapd.cn/55049933/s/1396813 --- 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 + .../frontend/src/business/system/components/UserImport.vue | 4 ++-- 4 files changed, 5 insertions(+), 2 deletions(-) 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 11f5c67e75..8bfa2ef3fe 100644 --- a/framework/sdk-parent/frontend/src/i18n/lang/en-US.js +++ b/framework/sdk-parent/frontend/src/i18n/lang/en-US.js @@ -530,6 +530,7 @@ const message = { page_guidance: "Page guidance", novice_journey: "Novice Journey", minder_operation: "Minder Operation", + upload_limit_size: "The size of the uploaded file cannot exceed 50M!", }, login: { normal_Login: "Normal Login", 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 3cb7291a89..4249408f65 100644 --- a/framework/sdk-parent/frontend/src/i18n/lang/zh-CN.js +++ b/framework/sdk-parent/frontend/src/i18n/lang/zh-CN.js @@ -522,6 +522,7 @@ const message = { page_guidance: "页面指引", novice_journey: "新手旅程", minder_operation: "脑图操作", + upload_limit_size: "上传文件大小不能超过 50M!", }, login: { normal_Login: "普通登录", 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 9dd475783d..96b9a83eac 100644 --- a/framework/sdk-parent/frontend/src/i18n/lang/zh-TW.js +++ b/framework/sdk-parent/frontend/src/i18n/lang/zh-TW.js @@ -521,6 +521,7 @@ const message = { page_guidance: "頁面指引", novice_journey: "新手旅程", minder_operation: "腦圖操作", + upload_limit_size: "上傳文件大小不能超過 50M!", }, login: { normal_Login: "普通登錄", diff --git a/system-setting/frontend/src/business/system/components/UserImport.vue b/system-setting/frontend/src/business/system/components/UserImport.vue index ca8484cbbf..8747ea463a 100644 --- a/system-setting/frontend/src/business/system/components/UserImport.vue +++ b/system-setting/frontend/src/business/system/components/UserImport.vue @@ -79,8 +79,8 @@ export default { this.$warning(this.$t('test_track.case.import.upload_limit_format')); return false; } - if (file.size / 1024 / 1024 > 20) { - this.$warning(this.$t('test_track.case.import.upload_limit_size')); + if (file.size / 1024 / 1024 > 50) { + this.$warning(this.$t('commons.upload_limit_size')); return false; } this.isLoading = true;