mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-17 01:14:50 +08:00
修复添加定时任务插入顺序
ql repo拉取失败自动删除目录重新拉取一次
This commit is contained in:
@@ -432,7 +432,7 @@ const Crontab = () => {
|
||||
const index = value.findIndex((x) => x._id === cron._id);
|
||||
const result = [...value];
|
||||
if (index === -1) {
|
||||
result.push(cron);
|
||||
result.unshift(cron);
|
||||
} else {
|
||||
result.splice(index, 1, {
|
||||
...cron,
|
||||
|
||||
Reference in New Issue
Block a user