Vue页面刷新

beforeRouteLeave(to, from, next) {
    
    this.$destroy();
  
    next();
 
}
或者使用Vue的生命周期函数activated,这个是解决keep-alive缓存的

评论

暂无评论