condition event fetching
This commit is contained in:
parent
ef4104a186
commit
2ec1ed18b1
3 changed files with 42 additions and 44 deletions
|
@ -93,9 +93,7 @@ export default {
|
|||
}
|
||||
},
|
||||
mounted() {
|
||||
if (!this.timer) {
|
||||
this.updateEvents()
|
||||
}
|
||||
this.updateEvents()
|
||||
},
|
||||
beforeDestroy() {
|
||||
clearTimeout(this.timer)
|
||||
|
@ -103,10 +101,6 @@ export default {
|
|||
methods: {
|
||||
updateEvents() {
|
||||
this.$store.dispatch('application/updateSelectEvents')
|
||||
|
||||
this.timer = setTimeout(() => {
|
||||
this.updateEvents()
|
||||
}, 60 * 1000)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue