From 016e1ad03a2c34d3fcf6f4b650bae6afbb40d661 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Thu, 17 Nov 2022 15:49:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A4=8D=E5=88=B6=E5=9C=BA=E6=99=AF=E5=A4=9A?= =?UTF-8?q?=E6=AC=A1=E7=82=B9=E5=87=BB=E4=BF=9D=E5=AD=98=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E7=94=9F=E6=88=90=E5=A4=9A=E4=B8=AA=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E5=9C=BA=E6=99=AF=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1019718 --user=王孝刚 [接口测试]github#19292复制场景后出现了多个重名和重复ID的场景 https://www.tapd.cn/55049933/s/1297592 --- .../src/business/automation/api-automation.js | 1 + .../automation/scenario/ApiScenarioList.vue | 2 +- .../automation/scenario/EditApiScenario.vue | 34 ++++++++----------- 3 files changed, 17 insertions(+), 20 deletions(-) diff --git a/api-test/frontend/src/business/automation/api-automation.js b/api-test/frontend/src/business/automation/api-automation.js index 7f087d6f90..6bc6095cdf 100644 --- a/api-test/frontend/src/business/automation/api-automation.js +++ b/api-test/frontend/src/business/automation/api-automation.js @@ -105,6 +105,7 @@ export function saveScenario(url, scenario, scenarioDefinition, _this, success) success(response.data); } }, error => { + _this.isPreventReClick = false; _this.errorRefresh(); }) } diff --git a/api-test/frontend/src/business/automation/scenario/ApiScenarioList.vue b/api-test/frontend/src/business/automation/scenario/ApiScenarioList.vue index 0a62e3b86b..540f554985 100644 --- a/api-test/frontend/src/business/automation/scenario/ApiScenarioList.vue +++ b/api-test/frontend/src/business/automation/scenario/ApiScenarioList.vue @@ -1114,7 +1114,7 @@ export default { alertMsg = this.$t('api_definition.scenario_is_referenced', [checkResult.refCount]) + ', ' + this.$t('api_test.is_continue') + " ?"; this.showScenario = true; } - this.$refs.apiDeleteConfirm.open(alertMsg, this.$t('permission.project_api_definition.delete_case'), param, checkResult.checkMsg); + this.$refs.apiDeleteConfirm.open(alertMsg, this.$t('permission.project_api_scenario.delete'), param, checkResult.checkMsg); }); } }, diff --git a/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue b/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue index 567a88f69b..f819c90354 100644 --- a/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue +++ b/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue @@ -381,12 +381,14 @@