beforeRouteLeave(to,from,next){
//   如果上一个页面是,就点击返回的时候跳到我的下单
  if(to.name=='确认订单')next({ name: '会员中心'});
  next();

    },

指定返回的是哪个页面 beforeRouteLeave

相关文章:

  • 2022-12-23
  • 2021-06-28
  • 2022-12-23
  • 2021-05-30
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
相关资源
相似解决方案