mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 09:45:36 +08:00
修复版本号样式和查看cron日志列表异常
This commit is contained in:
1 parent
4289a23895
commit
4f5540f756
2 files changed
+15
-3
No files matched your search
@@ -431,7 +431,7 @@ const Crontab = () => {
|
||||
if (index === -1) {
|
||||
result.push(cron);
|
||||
} else {
|
||||
result.splice(index + pageSize * (currentPage - 1), 1, {
|
||||
result.splice(index, 1, {
|
||||
...cron,
|
||||
});
|
||||
}
|
||||
@@ -442,9 +442,11 @@ const Crontab = () => {
|
||||
request
|
||||
.get(`${config.apiPrefix}crons/${cron._id}`)
|
||||
.then((data: any) => {
|
||||
console.log(value);
|
||||
const index = value.findIndex((x) => x._id === cron._id);
|
||||
console.log(index);
|
||||
const result = [...value];
|
||||
result.splice(index + pageSize * (currentPage - 1), 1, {
|
||||
result.splice(index, 1, {
|
||||
...cron,
|
||||
...data.data,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user