fix(接口测试): 修复接口自动化场景的自定义请求另存为接口定义的相关问题
--bug=1013132 --user=王孝刚 [接口测试]github#13513接口自动化场景的自定义请求另存为接口定义有问题 https://www.tapd.cn/55049933/s/1157565
This commit is contained in:
parent
a1be30aef8
commit
8ef94fa477
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue