1、设置定时器
mounted() {
this.timer = setInterval(function(){
//执行内容
}, 60000);
},
2、清除定时器
beforeDestroy() {
clearInterval(this.timer);
}
1、设置定时器
mounted() {
this.timer = setInterval(function(){
//执行内容
}, 60000);
},
2、清除定时器
beforeDestroy() {
clearInterval(this.timer);
}