修复排序顺序

This commit is contained in:
hanhh 2021-05-17 21:00:30 +08:00
parent 12896659a8
commit c3c585bd6e

View File

@ -196,7 +196,7 @@ const Crontab = () => {
setValue(
data.data.sort((a: any, b: any) => {
if (a.status === b.status && a.status === CrontabStatus.idle) {
return a.isDisabled - b.isDisable;
return a.isDisabled - b.isDisabled;
}
return CrontabSort[a.status] - CrontabSort[b.status];
}),