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}} +
{{response.responseResult.console}}