onBeforeRouteLeave((to, from, next) => {
console.log('Leaving the route, stopping the learning timer.');
stopLearningTimer();
next();
});
PC离开当前页面,关闭定时任务
onBeforeRouteLeave((to, from, next) => {
console.log('Leaving the route, stopping the learning timer.');
stopLearningTimer();
next();
});
PC离开当前页面,关闭定时任务