Refactor(BaseManagement): Support recompile

This commit is contained in:
2024-09-15 13:07:32 +08:00
parent 254c5ab48f
commit 9ca2ec8859

View File

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