fix(系统设置): 用户导入文件大小提示

--bug=1027730 --user=王旭 【系统设置】github#25527,系统设置-用户上传文件 提示信息和实际上传的提示不匹配,看不出限制是多大 https://www.tapd.cn/55049933/s/1396813
This commit is contained in:
WangXu10 2023-07-25 10:59:36 +08:00 committed by fit2-zhao
parent 63708cc82d
commit 908b32f7b1
4 changed files with 5 additions and 2 deletions

View File

@ -530,6 +530,7 @@ const message = {
page_guidance: "Page guidance", page_guidance: "Page guidance",
novice_journey: "Novice Journey", novice_journey: "Novice Journey",
minder_operation: "Minder Operation", minder_operation: "Minder Operation",
upload_limit_size: "The size of the uploaded file cannot exceed 50M!",
}, },
login: { login: {
normal_Login: "Normal Login", normal_Login: "Normal Login",

View File

@ -522,6 +522,7 @@ const message = {
page_guidance: "页面指引", page_guidance: "页面指引",
novice_journey: "新手旅程", novice_journey: "新手旅程",
minder_operation: "脑图操作", minder_operation: "脑图操作",
upload_limit_size: "上传文件大小不能超过 50M!",
}, },
login: { login: {
normal_Login: "普通登录", normal_Login: "普通登录",

View File

@ -521,6 +521,7 @@ const message = {
page_guidance: "頁面指引", page_guidance: "頁面指引",
novice_journey: "新手旅程", novice_journey: "新手旅程",
minder_operation: "腦圖操作", minder_operation: "腦圖操作",
upload_limit_size: "上傳文件大小不能超過 50M!",
}, },
login: { login: {
normal_Login: "普通登錄", normal_Login: "普通登錄",

View File

@ -79,8 +79,8 @@ export default {
this.$warning(this.$t('test_track.case.import.upload_limit_format')); this.$warning(this.$t('test_track.case.import.upload_limit_format'));
return false; return false;
} }
if (file.size / 1024 / 1024 > 20) { if (file.size / 1024 / 1024 > 50) {
this.$warning(this.$t('test_track.case.import.upload_limit_size')); this.$warning(this.$t('commons.upload_limit_size'));
return false; return false;
} }
this.isLoading = true; this.isLoading = true;