fix(接口测试): 修复接口自动化场景的自定义请求另存为接口定义的相关问题
--bug=1013132 --user=王孝刚 [接口测试]github#13513接口自动化场景的自定义请求另存为接口定义有问题 https://www.tapd.cn/55049933/s/1157565
This commit is contained in:
parent
8465f04684
commit
b483501b00
|
@ -152,6 +152,9 @@
|
||||||
let bodyUploadFiles = [];
|
let bodyUploadFiles = [];
|
||||||
data.bodyUploadIds = [];
|
data.bodyUploadIds = [];
|
||||||
let request = data.request;
|
let request = data.request;
|
||||||
|
if (request.url) {
|
||||||
|
request.path = request.url;
|
||||||
|
}
|
||||||
if (request.body) {
|
if (request.body) {
|
||||||
if (request.body.kvs) {
|
if (request.body.kvs) {
|
||||||
request.body.kvs.forEach(param => {
|
request.body.kvs.forEach(param => {
|
||||||
|
@ -271,7 +274,16 @@
|
||||||
data.protocol = "DUBBO";
|
data.protocol = "DUBBO";
|
||||||
}
|
}
|
||||||
data.id = getUUID();
|
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.getMaintainerOptions();
|
||||||
this.list(data);
|
this.list(data);
|
||||||
this.httpVisible = true;
|
this.httpVisible = true;
|
||||||
|
|
Loading…
Reference in New Issue