在使用vue-router的时候经常分不清router和route的区别:

  在函数式编程中:

  this.$router.push('/login') 或者Router.push()

  在动态获取路由参数时:

  this.$route.params.xxx

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-10
  • 2022-12-23
  • 2021-07-30
猜你喜欢
  • 2021-07-27
相关资源
相似解决方案