mounted() {
this.timer = setInterval(() => {
this.checkPoliceSituationDisposal()
}, 60 * 1000)
this.$once('hook:beforeDestroy', () => {
clearInterval(this.timer)
this.timer = null
})
},
this.$once('hook:beforeDestroy', ()=>{}) clear timer
Guess you like
Origin blog.csdn.net/m0_53562074/article/details/130729435
Recommended
Ranking