diff --git a/backend/src/main/java/io/metersphere/commons/constants/FileType.java b/backend/src/main/java/io/metersphere/commons/constants/FileType.java index 2172e2e78e..47e522a607 100644 --- a/backend/src/main/java/io/metersphere/commons/constants/FileType.java +++ b/backend/src/main/java/io/metersphere/commons/constants/FileType.java @@ -1,7 +1,9 @@ package io.metersphere.commons.constants; public enum FileType { - JMX(".jmx"), CSV(".csv"), JSON(".json"), PDF(".pdf"), JPG(".jpg"), PNG(".png"); + JMX(".jmx"), CSV(".csv"), JSON(".json"), PDF(".pdf"), + JPG(".jpg"), PNG(".png"), JPEG(".jpeg"), DOC(".doc"), + XLSX(".xlsx"), DOCX(".docx"); // 保存后缀 private String suffix; diff --git a/frontend/src/business/components/track/case/components/TestCaseEdit.vue b/frontend/src/business/components/track/case/components/TestCaseEdit.vue index 169bd88a16..dabae32940 100644 --- a/frontend/src/business/components/track/case/components/TestCaseEdit.vue +++ b/frontend/src/business/components/track/case/components/TestCaseEdit.vue @@ -213,16 +213,17 @@ 附件: - + 只能上传jpg、jpeg、png、docx、doc、pdf、xlsx文件 @@ -488,7 +489,9 @@ export default { result: '' }]; this.form.remark = ''; - this.form.uploadList = []; + this.uploadList = []; + this.fileList = []; + this.tableData = []; this.$emit("refresh"); return; } @@ -628,6 +631,9 @@ export default { desc: '', result: '' }]; + this.uploadList = []; + this.fileList = []; + this.tableData = []; return true; }); }