From 7fb0e8d7c89e0ebac7874892daf52e80c2920779 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Thu, 21 Oct 2021 13:50:59 +0800 Subject: [PATCH] =?UTF-8?q?fix=20(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):?= =?UTF-8?q?=20=E5=A2=9E=E5=8A=A0=E9=BB=98=E8=AE=A4=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/definition/components/case/ApiCaseList.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/business/components/api/definition/components/case/ApiCaseList.vue b/frontend/src/business/components/api/definition/components/case/ApiCaseList.vue index 1e071182e8..9686fbace5 100644 --- a/frontend/src/business/components/api/definition/components/case/ApiCaseList.vue +++ b/frontend/src/business/components/api/definition/components/case/ApiCaseList.vue @@ -300,8 +300,8 @@ export default { const index = this.runData.findIndex(d => d.name === apiCase.id); if (index !== -1) { apiCase.active = true; - }else { - if(this.condition.id && this.condition.id != ""){ + } else { + if (this.condition.id && this.condition.id != "") { apiCase.active = true; } } @@ -378,7 +378,7 @@ export default { } let uuid = getUUID(); request.id = uuid; - let obj = {apiDefinitionId: this.api.id, name: '', priority: 'P0', active: true, tags: [], uuid: uuid}; + let obj = {apiDefinitionId: this.api.id, name: '', priority: 'P0', active: true, tags: [], uuid: uuid, caseStatus: "Underway"}; obj.request = request; this.apiCaseList.unshift(obj); }