From 8cff2e8379cc136ea15b7a381e44cbbe798f0855 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Fri, 14 Apr 2023 14:49:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BF=AB=E9=80=9F=E7=82=B9=E5=87=BB=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E6=8E=A5=E5=8F=A3=EF=BC=8C=E4=BC=9A=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E5=A4=9A=E4=B8=AA=E6=8E=A5=E5=8F=A3=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=1025426 --user=王孝刚 【接口测试】创建接口-保存多次点击-创建接口重复了 https://www.tapd.cn/55049933/s/1362873 --- .../src/business/definition/components/case/ApiCaseHeader.vue | 1 + .../definition/components/complete/EditCompleteDubboApi.vue | 2 +- .../definition/components/complete/EditCompleteHTTPApi.vue | 1 + .../definition/components/complete/EditCompleteSQLApi.vue | 2 +- .../definition/components/complete/EditCompleteTCPApi.vue | 2 +- 5 files changed, 5 insertions(+), 3 deletions(-) diff --git a/api-test/frontend/src/business/definition/components/case/ApiCaseHeader.vue b/api-test/frontend/src/business/definition/components/case/ApiCaseHeader.vue index a0ed5e4b67..3e624e20a9 100644 --- a/api-test/frontend/src/business/definition/components/case/ApiCaseHeader.vue +++ b/api-test/frontend/src/business/definition/components/case/ApiCaseHeader.vue @@ -49,6 +49,7 @@ type="primary" size="small" @click="saveTestCase" + v-prevent-re-click @command="handleCommand"> {{ $t('commons.save') }} diff --git a/api-test/frontend/src/business/definition/components/complete/EditCompleteDubboApi.vue b/api-test/frontend/src/business/definition/components/complete/EditCompleteDubboApi.vue index 3db26247a5..68d151fc57 100644 --- a/api-test/frontend/src/business/definition/components/complete/EditCompleteDubboApi.vue +++ b/api-test/frontend/src/business/definition/components/complete/EditCompleteDubboApi.vue @@ -46,7 +46,7 @@ @checkout="checkout" @create="create" @del="del"/> - {{ $t('commons.save') }} + {{ $t('commons.save') }} diff --git a/api-test/frontend/src/business/definition/components/complete/EditCompleteHTTPApi.vue b/api-test/frontend/src/business/definition/components/complete/EditCompleteHTTPApi.vue index b385a608ca..7b25d52a70 100644 --- a/api-test/frontend/src/business/definition/components/complete/EditCompleteHTTPApi.vue +++ b/api-test/frontend/src/business/definition/components/complete/EditCompleteHTTPApi.vue @@ -50,6 +50,7 @@ type="primary" size="small" @click="saveApi" + v-prevent-re-click title="ctrl + s" v-permission="['PROJECT_API_DEFINITION:READ+EDIT_API']" >{{ $t('commons.save') }} diff --git a/api-test/frontend/src/business/definition/components/complete/EditCompleteSQLApi.vue b/api-test/frontend/src/business/definition/components/complete/EditCompleteSQLApi.vue index e9591f9bee..3a59485277 100644 --- a/api-test/frontend/src/business/definition/components/complete/EditCompleteSQLApi.vue +++ b/api-test/frontend/src/business/definition/components/complete/EditCompleteSQLApi.vue @@ -46,7 +46,7 @@ @create="create" @setLatest="setLatest" @del="del" /> - {{ $t('commons.save') }} + {{ $t('commons.save') }} diff --git a/api-test/frontend/src/business/definition/components/complete/EditCompleteTCPApi.vue b/api-test/frontend/src/business/definition/components/complete/EditCompleteTCPApi.vue index 908fc56e9b..edd586f309 100644 --- a/api-test/frontend/src/business/definition/components/complete/EditCompleteTCPApi.vue +++ b/api-test/frontend/src/business/definition/components/complete/EditCompleteTCPApi.vue @@ -46,7 +46,7 @@ @create="create" @setLatest="setLatest" @del="del" /> - {{ $t('commons.save') }} + {{ $t('commons.save') }}