From 6de79df31f62cb55709caeabcd7c26ee659cffe2 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Tue, 20 Oct 2020 13:46:19 +0800 Subject: [PATCH 1/5] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):?= =?UTF-8?q?=20=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/test/components/body/ApiBodyFileUpload.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/business/components/api/test/components/body/ApiBodyFileUpload.vue b/frontend/src/business/components/api/test/components/body/ApiBodyFileUpload.vue index 909b314ea9..c86aa57fd5 100644 --- a/frontend/src/business/components/api/test/components/body/ApiBodyFileUpload.vue +++ b/frontend/src/business/components/api/test/components/body/ApiBodyFileUpload.vue @@ -46,7 +46,10 @@ handleRemove(file) { this.$refs.upload.handleRemove(file); for (let i = 0; i < this.parameter.files.length; i++) { - if (file.file.name === this.parameter.files[i].file.name) { + let fileName = file.file ? file.file.name : file.name; + let paramFileName = this.parameter.files[i].file ? + this.parameter.files[i].file.name : this.parameter.files[i].name; + if (fileName === paramFileName) { this.parameter.files.splice(i, 1); this.$refs.upload.handleRemove(file); break; From 73218f5f23533905c0b40ffd2c99ccd3bc360e00 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Tue, 20 Oct 2020 14:15:07 +0800 Subject: [PATCH 2/5] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):?= =?UTF-8?q?=20=E7=82=B9=E5=87=BB=E9=9D=A2=E5=8C=85=E5=B1=91=E5=85=A8?= =?UTF-8?q?=E9=83=A8=E7=94=A8=E4=BE=8B=EF=BC=8C=E6=88=91=E7=9A=84=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../track/plan/view/comonents/TestPlanTestCaseList.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseList.vue b/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseList.vue index d04dc6ab9a..22a88bf199 100644 --- a/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseList.vue +++ b/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseList.vue @@ -5,7 +5,7 @@