定时任务优化: 加入启用/禁用

This commit is contained in:
marvzhang
2020-01-06 12:35:56 +08:00
parent 877289e382
commit fafdccecf7
4 changed files with 72 additions and 67 deletions

View File

@@ -345,9 +345,9 @@ export default {
this.$store.dispatch('node/getNodeList')
},
mounted () {
// this.handle = setInterval(() => {
// this.$store.dispatch('task/getTaskList')
// }, 5000)
this.handle = setInterval(() => {
this.$store.dispatch('task/getTaskList')
}, 5000)
},
destroyed () {
clearInterval(this.handle)