Vue page refresh

Posted May 27, 20201 min read

beforeRouteLeave(to, from, next) {
this. $destroy();
next();
}
Or use Vue's life cycle function activated, this is to solve the keep-alive cache