fix (接口定义): 增加默认状态
This commit is contained in:
parent
a731fa4683
commit
7fb0e8d7c8
|
@ -300,8 +300,8 @@ export default {
|
||||||
const index = this.runData.findIndex(d => d.name === apiCase.id);
|
const index = this.runData.findIndex(d => d.name === apiCase.id);
|
||||||
if (index !== -1) {
|
if (index !== -1) {
|
||||||
apiCase.active = true;
|
apiCase.active = true;
|
||||||
}else {
|
} else {
|
||||||
if(this.condition.id && this.condition.id != ""){
|
if (this.condition.id && this.condition.id != "") {
|
||||||
apiCase.active = true;
|
apiCase.active = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -378,7 +378,7 @@ export default {
|
||||||
}
|
}
|
||||||
let uuid = getUUID();
|
let uuid = getUUID();
|
||||||
request.id = uuid;
|
request.id = uuid;
|
||||||
let obj = {apiDefinitionId: this.api.id, name: '', priority: 'P0', active: true, tags: [], uuid: uuid};
|
let obj = {apiDefinitionId: this.api.id, name: '', priority: 'P0', active: true, tags: [], uuid: uuid, caseStatus: "Underway"};
|
||||||
obj.request = request;
|
obj.request = request;
|
||||||
this.apiCaseList.unshift(obj);
|
this.apiCaseList.unshift(obj);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue