fix(接口测试): 修复接口测试用例不同步对比抽屉权限去掉确定按钮

This commit is contained in:
xinxin.wu 2024-08-13 18:55:34 +08:00 committed by 刘瑞斌
parent 86dd1e49f8
commit 17cb57eada
1 changed files with 7 additions and 1 deletions

View File

@ -54,7 +54,13 @@
>
{{ t('case.ignoreThisChange') }}
</a-button>
<a-button type="primary" :loading="syncLoading" :disabled="!checkType.length" @click="confirmSync">
<a-button
v-permission="['PROJECT_API_DEFINITION_CASE:READ+UPDATE']"
type="primary"
:loading="syncLoading"
:disabled="!checkType.length"
@click="confirmSync"
>
{{
showSyncConfig && hasAnyPermission(['PROJECT_API_DEFINITION_CASE:READ+UPDATE'])
? t('case.apiSyncChange')