fix (接口定义): 增加默认状态

This commit is contained in:
fit2-zhao 2021-10-21 13:50:59 +08:00 committed by fit2-zhao
parent a731fa4683
commit 7fb0e8d7c8
1 changed files with 3 additions and 3 deletions

View File

@ -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);
} }