From 36a14be42b0663818b0b8b2cf5b0ffc90cf95500 Mon Sep 17 00:00:00 2001 From: xingyu Date: Thu, 18 May 2023 19:26:49 +0800 Subject: [PATCH] fix: file config action show --- src/views/infra/fileConfig/index.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/views/infra/fileConfig/index.vue b/src/views/infra/fileConfig/index.vue index 18eaef23..8ed8659d 100644 --- a/src/views/infra/fileConfig/index.vue +++ b/src/views/infra/fileConfig/index.vue @@ -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',