From 42273bebf0dae60a74ae4348c996dabaa506b56b Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Wed, 27 Jan 2021 13:39:46 +0800 Subject: [PATCH] =?UTF-8?q?style(=E6=8E=A5=E5=8F=A3=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96):=20=E6=8E=A7=E5=88=B6=E5=8F=B0=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/definition/components/case/ApiCaseItem.vue | 5 +++-- .../api/definition/components/response/ResponseResult.vue | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) 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 7dcab3dbe8..231fbc59b4 100644 --- a/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue +++ b/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue @@ -271,12 +271,13 @@ let bodyFiles = this.getBodyUploadFiles(tmp); tmp.projectId = getCurrentProjectID(); tmp.active = true; - tmp.request.path = this.api.path; - tmp.request.method = this.api.method; tmp.apiDefinitionId = tmp.apiDefinitionId || this.api.id; let url = "/api/testcase/create"; if (tmp.id) { url = "/api/testcase/update"; + } else { + tmp.request.path = this.api.path; + tmp.request.method = this.api.method; } if (tmp.tags instanceof Array) { tmp.tags = JSON.stringify(tmp.tags); diff --git a/frontend/src/business/components/api/definition/components/response/ResponseResult.vue b/frontend/src/business/components/api/definition/components/response/ResponseResult.vue index 14cc6805ee..16e7b73164 100644 --- a/frontend/src/business/components/api/definition/components/response/ResponseResult.vue +++ b/frontend/src/business/components/api/definition/components/response/ResponseResult.vue @@ -15,7 +15,9 @@ -
{{response.responseResult.console}}
+
+
{{response.responseResult.console}}
+