mounted() {
this.timer = setInterval(() => {
this.checkPoliceSituationDisposal()
}, 60 * 1000)
this.$once('hook:beforeDestroy', () => {
clearInterval(this.timer)
this.timer = null
})
},
this.$once(‘hook:beforeDestroy‘, ()=>{})清除定时器
猜你喜欢
转载自blog.csdn.net/m0_53562074/article/details/130729435
今日推荐
周排行