mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2024-11-01 14:10:27 +08:00
解决任务模块every错误
This commit is contained in:
parent
105f2b5f58
commit
76547a61c1
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user