fix(接口测试): 修复删除最后一个场景后弹出已有场景列表的bug
This commit is contained in:
parent
8cd9371b3d
commit
302a754f5b
|
@ -147,6 +147,7 @@ export default {
|
|||
deleteScenario(index) {
|
||||
this.scenarios.splice(index, 1);
|
||||
if (this.scenarios.length === 0) {
|
||||
this.type = this.types.CREATE;
|
||||
this.createScenario();
|
||||
this.select(this.scenarios[0]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue