Vue.prototype.back = function (route) {
  if (window.history.length > 1) {
    this.$router.back();
  } else {
    this.$router.push(route);
  }
}

 

相关文章:

  • 2022-12-23
  • 2021-10-27
  • 2021-05-02
  • 2022-02-14
  • 2021-05-17
  • 2021-11-01
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2022-12-23
相关资源
相似解决方案