From f6338f97da14d90c17f7d4291dcc736e34fca1b2 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Thu, 15 Sep 2022 16:27:28 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):?= =?UTF-8?q?=20=E4=BC=98=E5=8C=96=E6=93=8D=E4=BD=9C=EF=BC=8C=E5=BD=93?= =?UTF-8?q?=E5=9C=BA=E6=99=AF=E6=AD=A5=E9=AA=A4=E5=8F=AA=E6=9C=89=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E6=97=B6=E9=9A=90=E8=97=8F=E6=89=B9=E9=87=8F=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1016630 --user=赵勇 【接口测试】场景步骤批量操作,只剩一个步骤的时候,批量操作框没隐藏 https://www.tapd.cn/55049933/s/1243554 --- .../components/api/automation/scenario/EditApiScenario.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue index e484b3da24..117a195d09 100644 --- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue @@ -2127,7 +2127,11 @@ export default { this.recursionDelete(item, this.scenarioDefinition); }); this.sort(); - this.forceRerender(); + if (this.scenarioDefinition.length <= 1) { + this.cancelBatchProcessing(); + } else { + this.forceRerender(); + } } } });