fix(接口定义): 测试中另存新接口缺陷修复

This commit is contained in:
fit2-zhao 2021-02-07 11:36:57 +08:00
parent 61992c14d5
commit f3e0eb5b9d
4 changed files with 16 additions and 10 deletions

View File

@ -161,7 +161,9 @@
},
saveAsApi() {
let data = {};
data.request = JSON.stringify(this.api.request);
let req = this.api.request;
req.id = getUUID();
data.request = JSON.stringify(req);
data.method = this.api.method;
data.status = this.api.status;
data.userId = this.api.userId;

View File

@ -186,11 +186,11 @@
},
saveAsApi() {
let data = {};
data.request = JSON.stringify(this.api.request);
let req = this.api.request;
req.id = getUUID();
data.request = JSON.stringify(req);
data.method = this.api.method;
data.url = this.api.url;
let id = getUUID();
data.id = id;
data.status = this.api.status;
data.userId = this.api.userId;
data.description = this.api.description;

View File

@ -160,7 +160,9 @@
},
saveAsApi() {
let data = {};
data.request = JSON.stringify(this.api.request);
let req = this.api.request;
req.id = getUUID();
data.request = JSON.stringify(req);
data.method = this.api.method;
data.status = this.api.status;
data.userId = this.api.userId;

View File

@ -173,7 +173,9 @@
},
saveAsApi() {
let data = {};
data.request = JSON.stringify(this.api.request);
let req = this.api.request;
req.id = getUUID();
data.request = JSON.stringify(req);
data.method = this.api.method;
data.status = this.api.status;
data.userId = this.api.userId;