timeInter: null,
mounted() {
this.initpage()
this.$once('hook:beforeDestroy', () => {
// 再通过事件监听,监听到 组件销毁 后,再执行关闭计时器。
clearInterval(this.timeInter)
})
},
methods: {
initpage() {
this.timeInter = setInterval(() => {
this.queryClick()
}, 300000)
},
}