fix(接口测试): 修复上传文件大小超过50MB
This commit is contained in:
parent
cc5bbbe3e2
commit
5aa846f696
|
@ -81,7 +81,7 @@ export default {
|
|||
this.$emit('input', JSON.stringify(files));
|
||||
},
|
||||
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'));
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -233,7 +233,7 @@ export default {
|
|||
this.$warning(this.$t('test_track.case.import.upload_limit_count'));
|
||||
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'));
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -164,7 +164,7 @@ export default {
|
|||
this.parameter.files.push(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'));
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue