refactor(接口测试): 优化操作,当场景步骤只有一个时隐藏批量操作按钮

--bug=1016630 --user=赵勇 【接口测试】场景步骤批量操作,只剩一个步骤的时候,批量操作框没隐藏 https://www.tapd.cn/55049933/s/1243554
This commit is contained in:
fit2-zhao 2022-09-15 16:27:28 +08:00 committed by f2c-ci-robot[bot]
parent 4306a8509b
commit f6338f97da
1 changed files with 5 additions and 1 deletions

View File

@ -2127,9 +2127,13 @@ export default {
this.recursionDelete(item, this.scenarioDefinition); this.recursionDelete(item, this.scenarioDefinition);
}); });
this.sort(); this.sort();
if (this.scenarioDefinition.length <= 1) {
this.cancelBatchProcessing();
} else {
this.forceRerender(); this.forceRerender();
} }
} }
}
}); });
}, },
recursionDelete(resourceId, nodes) { recursionDelete(resourceId, nodes) {