fix(接口测试): 修复场景步骤转存为自定义接口的问题

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

View File

@ -147,14 +147,12 @@
if (!data.method) {
data.method = data.protocol;
}
data.request.path = this.httpForm.path;
},
getBodyUploadFiles(data) {
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 => {
@ -274,6 +272,7 @@
data.protocol = "DUBBO";
}
data.id = getUUID();
data.path = this.httpForm.path;
this.httpForm = {
id: data.id,
name: data.name,

View File

@ -57,7 +57,6 @@ export default {
isDisable(item) {
if (item.isDisable) {
if (item.isDisable instanceof Function) {
console.log(item.isDisable());
return item.isDisable();
} else {
return item.isDisable;