提交 9ec595a1 authored 作者: taojinlong's avatar taojinlong

feat: 更新任务列表页 自动刷新(5s)

上级 196c0034
...@@ -379,6 +379,12 @@ export default { ...@@ -379,6 +379,12 @@ export default {
mounted() { mounted() {
this.calHeight() this.calHeight()
}, },
created() {
this.timer = setInterval(this.listTaskLog, 5000)
},
beforeDestroy() {
clearInterval(this.timer)
},
methods: { methods: {
calHeight() { calHeight() {
const that = this const that = this
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论