fix(接口测试): 修复接口自动化场景的自定义请求另存为接口定义的相关问题

--bug=1013132 --user=王孝刚 [接口测试]github#13513接口自动化场景的自定义请求另存为接口定义有问题
https://www.tapd.cn/55049933/s/1157565
This commit is contained in:
wxg0103 2022-05-13 10:19:23 +08:00 committed by f2c-ci-robot[bot]
parent a1be30aef8
commit 8ef94fa477
1 changed files with 13 additions and 1 deletions

View File

@ -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;