fix(接口测试): 修复删除最后一个场景后弹出已有场景列表的bug

This commit is contained in:
q4speed 2020-09-25 18:20:52 +08:00
parent 8cd9371b3d
commit 302a754f5b
1 changed files with 1 additions and 0 deletions

View File

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