修复添加定时任务插入顺序

ql repo拉取失败自动删除目录重新拉取一次
This commit is contained in:
hanhh
2021-08-12 00:00:39 +08:00
parent 8be71b129a
commit d06fccd0d1
10 changed files with 50 additions and 200 deletions
+1 -1
View File
@@ -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,