fix(接口测试): 修复上传文件大小超过50MB

This commit is contained in:
wxg0103 2023-11-15 17:34:54 +08:00 committed by 刘瑞斌
parent cc5bbbe3e2
commit 5aa846f696
3 changed files with 3 additions and 3 deletions

View File

@ -81,7 +81,7 @@ export default {
this.$emit('input', JSON.stringify(files)); this.$emit('input', JSON.stringify(files));
}, },
uploadValidate(file) { uploadValidate(file) {
if (file.size / 1024 / 1024 > 500) { if (file.size / 1024 / 1024 > 50) {
this.$warning(this.$t('api_test.request.body_upload_limit_size')); this.$warning(this.$t('api_test.request.body_upload_limit_size'));
return false; return false;
} }

View File

@ -233,7 +233,7 @@ export default {
this.$warning(this.$t('test_track.case.import.upload_limit_count')); this.$warning(this.$t('test_track.case.import.upload_limit_count'));
return false; return false;
} }
if (file.size / 1024 / 1024 > 500) { if (file.size / 1024 / 1024 > 50) {
this.$warning(this.$t('api_test.request.body_upload_limit_size')); this.$warning(this.$t('api_test.request.body_upload_limit_size'));
return false; return false;
} }

View File

@ -164,7 +164,7 @@ export default {
this.parameter.files.push(file); this.parameter.files.push(file);
}, },
uploadValidate(file) { uploadValidate(file) {
if (file.size / 1024 / 1024 > 500) { if (file.size / 1024 / 1024 > 50) {
this.$warning(this.$t('api_test.request.body_upload_limit_size')); this.$warning(this.$t('api_test.request.body_upload_limit_size'));
return false; return false;
} }