mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-25 00:16:06 +08:00
修复排序顺序
This commit is contained in:
parent
12896659a8
commit
c3c585bd6e
|
@ -196,7 +196,7 @@ const Crontab = () => {
|
||||||
setValue(
|
setValue(
|
||||||
data.data.sort((a: any, b: any) => {
|
data.data.sort((a: any, b: any) => {
|
||||||
if (a.status === b.status && a.status === CrontabStatus.idle) {
|
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];
|
return CrontabSort[a.status] - CrontabSort[b.status];
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user