删除额外日志

This commit is contained in:
hanhh committed 2021-05-21 18:54:15 +08:00
1 parent 12216abcff
commit 4958d700de
3 files changed
+8 -7

No files matched your search

+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>