删除额外日志

This commit is contained in:
hanhh
2021-05-21 18:54:15 +08:00
parent 12216abcff
commit 4958d700de
3 changed files with 8 additions and 7 deletions
+2 -2
View File
@@ -103,7 +103,7 @@ const Crontab = () => {
align: 'center' as const,
render: (text: string, record: any) => (
<>
{!record.isDisabled && (
{(!record.isDisabled || record.status !== CrontabStatus.idle) && (
<>
{record.status === CrontabStatus.idle && (
<Tag icon={<ClockCircleOutlined />} color="default">
@@ -125,7 +125,7 @@ const Crontab = () => {
)}
</>
)}
{record.isDisabled === 1 && (
{record.isDisabled === 1 && record.status === CrontabStatus.idle && (
<Tag icon={<CloseCircleOutlined />} color="error">
</Tag>