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