fix: file config action show

pull/16/head
xingyu 2023-05-18 19:26:49 +08:00
parent 85ba6875bb
commit 36a14be42b
1 changed files with 9 additions and 1 deletions

View File

@ -12,7 +12,15 @@
:actions="[
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'infra:file-config:update', onClick: handleEdit.bind(null, record) },
{ icon: IconEnum.TEST, label: t('action.test'), auth: 'infra:file-config:update', onClick: handleTest.bind(null, record) },
{ icon: IconEnum.AUTH, label: '主配置', auth: 'infra:file-config:update', onClick: handleMaster.bind(null, record) },
{
icon: IconEnum.AUTH,
label: '主配置',
auth: 'infra:file-config:update',
ifShow: () => {
return !record.master
},
onClick: handleMaster.bind(null, record)
},
{
icon: IconEnum.DELETE,
color: 'error',