修复强制停止任务

This commit is contained in:
whyour committed 2021-05-11 21:06:01 +08:00
1 parent 092222b4cb
commit 633fe7707c
2 files changed
+6 -3

No files matched your search

+2 -2
View File
@@ -99,12 +99,12 @@ const Crontab = () => {
align: 'center' as const,
render: (text: string, record: any) => (
<>
{record.status === CrontabStatus.idle && (
{record.status !== CrontabStatus.disabled && !record.pid && (
<Tag icon={<ClockCircleOutlined />} color="default">
空闲中
</Tag>
)}
{record.status === CrontabStatus.running && (
{record.status === CrontabStatus.running && record.pid && (
<Tag icon={<SyncOutlined spin />} color="processing">
运行中
</Tag>