mounted() {
this.timer = setInterval(() => {
this.checkPoliceSituationDisposal()
}, 60 * 1000)
this.$once('hook:beforeDestroy', () => {
clearInterval(this.timer)
this.timer = null
})
},
this.$once(‘hook:beforeDestroy‘, ()=>{})清除定时器
最新推荐文章于 2024-07-04 10:41:11 发布