From 8840053d18b0fc9ad5f1dcb5680de62a3766e19d Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Thu, 21 Jan 2021 11:30:23 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):?= =?UTF-8?q?=20=E7=82=B9=E5=87=BB=E7=94=A8=E4=BE=8B=E7=BB=93=E6=9E=9C?= =?UTF-8?q?=E7=8A=B6=E6=80=81=EF=BC=8C=E5=B1=95=E5=BC=80=E7=94=A8=E4=BE=8B?= =?UTF-8?q?=E7=BB=93=E6=9E=9C=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/package.json | 1 - .../automation/scenario/component/ApiResponseComponent.vue | 3 +++ .../api/definition/components/case/ApiCaseItem.vue | 5 +++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 10bf93c1b4..ab73330e9e 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -38,7 +38,6 @@ "vue-echarts": "^4.1.0", "vue-float-action-button": "^0.6.6", "vue-i18n": "^8.15.3", - "vue-input-tag": "^2.0.7", "vue-jsonpath-picker": "^1.1.5", "vue-papa-parse": "^2.0.0", "vue-pdf": "^4.2.0", diff --git a/frontend/src/business/components/api/automation/scenario/component/ApiResponseComponent.vue b/frontend/src/business/components/api/automation/scenario/component/ApiResponseComponent.vue index 8b74501e7c..1fd226a48b 100644 --- a/frontend/src/business/components/api/automation/scenario/component/ApiResponseComponent.vue +++ b/frontend/src/business/components/api/automation/scenario/component/ApiResponseComponent.vue @@ -33,6 +33,9 @@ }, created() { this.getExecResult(); + if (this.apiItem.isActive) { + this.isActive = true; + } }, methods: { getExecResult() { diff --git a/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue b/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue index 201d9465e2..7f7c4a326c 100644 --- a/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue +++ b/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue @@ -269,8 +269,9 @@ return true; } }, - showExecResult(data) { - this.$emit('showExecResult', data); + showExecResult(item) { + item.active = false; + item.isActive = true; }, getBodyUploadFiles(row) { let bodyUploadFiles = [];