From b483501b00f0f290cdf63e9ff868459216e9d852 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Fri, 13 May 2022 10:19:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=A5=E5=8F=A3=E8=87=AA=E5=8A=A8=E5=8C=96?= =?UTF-8?q?=E5=9C=BA=E6=99=AF=E7=9A=84=E8=87=AA=E5=AE=9A=E4=B9=89=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E5=8F=A6=E5=AD=98=E4=B8=BA=E6=8E=A5=E5=8F=A3=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E7=9A=84=E7=9B=B8=E5=85=B3=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1013132 --user=王孝刚 [接口测试]github#13513接口自动化场景的自定义请求另存为接口定义有问题 https://www.tapd.cn/55049933/s/1157565 --- .../api/automation/scenario/api/AddBasisApi.vue | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/frontend/src/business/components/api/automation/scenario/api/AddBasisApi.vue b/frontend/src/business/components/api/automation/scenario/api/AddBasisApi.vue index dfa421b986..cd66cd14fb 100644 --- a/frontend/src/business/components/api/automation/scenario/api/AddBasisApi.vue +++ b/frontend/src/business/components/api/automation/scenario/api/AddBasisApi.vue @@ -152,6 +152,9 @@ let bodyUploadFiles = []; data.bodyUploadIds = []; let request = data.request; + if (request.url) { + request.path = request.url; + } if (request.body) { if (request.body.kvs) { request.body.kvs.forEach(param => { @@ -271,7 +274,16 @@ data.protocol = "DUBBO"; } data.id = getUUID(); - this.httpForm = {id: data.id, name: data.name, protocol: data.protocol, path: data.path, method: api.method, userId: getCurrentUser().id, request: data, moduleId: "default-module"}; + this.httpForm = { + id: data.id, + name: data.name, + protocol: data.protocol, + path: data.path ? data.path : data.url, + method: api.method, + userId: getCurrentUser().id, + request: data, + moduleId: "default-module" + }; this.getMaintainerOptions(); this.list(data); this.httpVisible = true;