refactor(接口定义): 接口定义列表编辑案例时的默认状态改为直接展开

接口定义列表编辑案例时的默认状态改为直接展开
This commit is contained in:
song-tianyang 2021-09-26 18:08:15 +08:00 committed by song-tianyang
parent be6390d3bf
commit ac546e04c1
1 changed files with 4 additions and 0 deletions

View File

@ -303,6 +303,10 @@ 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 {
if(this.condition.id && this.condition.id != ""){
apiCase.active = true;
}
} }
}); });
this.apiCaseList = data; this.apiCaseList = data;