fix(接口测试): 修复快速点击保存接口,会保存多个接口的缺陷

--bug=1025426 --user=王孝刚 【接口测试】创建接口-保存多次点击-创建接口重复了
https://www.tapd.cn/55049933/s/1362873
This commit is contained in:
wxg0103 2023-04-14 14:49:02 +08:00 committed by 建国
parent 269184fe2c
commit 8cff2e8379
5 changed files with 5 additions and 3 deletions

View File

@ -49,6 +49,7 @@
type="primary" type="primary"
size="small" size="small"
@click="saveTestCase" @click="saveTestCase"
v-prevent-re-click
@command="handleCommand"> @command="handleCommand">
{{ $t('commons.save') }} {{ $t('commons.save') }}
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">

View File

@ -46,7 +46,7 @@
@checkout="checkout" @checkout="checkout"
@create="create" @create="create"
@del="del"/> @del="del"/>
<el-button type="primary" size="small" @click="saveApi" title="ctrl + s">{{ $t('commons.save') }}</el-button> <el-button type="primary" size="small" @click="saveApi" v-prevent-re-click title="ctrl + s">{{ $t('commons.save') }}</el-button>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>

View File

@ -50,6 +50,7 @@
type="primary" type="primary"
size="small" size="small"
@click="saveApi" @click="saveApi"
v-prevent-re-click
title="ctrl + s" title="ctrl + s"
v-permission="['PROJECT_API_DEFINITION:READ+EDIT_API']" v-permission="['PROJECT_API_DEFINITION:READ+EDIT_API']"
>{{ $t('commons.save') }} >{{ $t('commons.save') }}

View File

@ -46,7 +46,7 @@
@create="create" @create="create"
@setLatest="setLatest" @setLatest="setLatest"
@del="del" /> @del="del" />
<el-button type="primary" size="small" @click="saveApi" title="ctrl + s">{{ $t('commons.save') }}</el-button> <el-button type="primary" size="small" @click="saveApi" title="ctrl + s" v-prevent-re-click>{{ $t('commons.save') }}</el-button>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>

View File

@ -46,7 +46,7 @@
@create="create" @create="create"
@setLatest="setLatest" @setLatest="setLatest"
@del="del" /> @del="del" />
<el-button type="primary" size="small" @click="saveApi" title="ctrl + s">{{ $t('commons.save') }}</el-button> <el-button type="primary" size="small" @click="saveApi" title="ctrl + s" v-prevent-re-click>{{ $t('commons.save') }}</el-button>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>