fix(测试跟踪): 修复上传的文件为空时异常

This commit is contained in:
fit2-zhao 2020-09-30 17:10:16 +08:00
parent f32b6b530b
commit c64f5847f8
2 changed files with 2 additions and 1 deletions

View File

@ -273,6 +273,8 @@ public class TestCaseService {
.map(TestCase::getName)
.collect(Collectors.toSet());
List<ExcelErrData<TestCaseExcelData>> errList = null;
if(multipartFile == null )
MSException.throwException(Translator.get("upload_fail"));
if (multipartFile.getOriginalFilename().endsWith(".xmind")) {
try {

View File

@ -65,7 +65,6 @@ export default {
},
mounted() {
console.log(this.response.headers);
if (!this.response.headers) {
return;
}