Refactor(BaseManagement): Support recompile

This commit is contained in:
2024-10-26 16:56:41 +08:00
parent 757c27823a
commit 8bde570d01

View File

@@ -169,18 +169,18 @@ const Base = () => {
)}
</>
),
width: '12em',
width: '14em',
align: 'center',
render: (_, record) => (
<>
<AntdSpace size={'middle'}>
{!record.compiled && !Object.keys(hasEdited).length && (
{!Object.keys(hasEdited).length && (
<Permission operationCode={['system:tool:modify:base']}>
<a
style={{ color: COLOR_PRODUCTION }}
onClick={handleOnCompileBtnClick(record)}
>
{record.compiled ? '重新编译' : '编译'}
</a>
</Permission>
)}