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

buddha
130 声望2 粉丝

解决移动端技术问题的三大法宝:重启、刷新、换手机