解决任务模块every错误

This commit is contained in:
icssoa 2023-04-18 16:55:13 +08:00
parent 105f2b5f58
commit 76547a61c1

View File

@ -19,7 +19,7 @@
</p> </p>
<p class="row"> <p class="row">
<span>定时规则</span> <span>定时规则</span>
<span>{{ item.taskType == 1 ? `间隔${item.every}秒执行` : item.cron }}</span> <span>{{ item.taskType == 1 ? `间隔${item._every}秒执行` : item.cron }}</span>
</p> </p>
<div class="status"> <div class="status">
@ -106,7 +106,7 @@ function refresh() {
service.task.info.page({ size: 100, page: 1 }).then((res) => { service.task.info.page({ size: 100, page: 1 }).then((res) => {
list.value = res.list.map((e) => { list.value = res.list.map((e) => {
if (e.every) { if (e.every) {
e.every /= 1000; e._every = parseInt(String(e.every / 1000));
} }
return e; return e;