this.$router 与this.$route的区别

  • this.$router是Vue-Router的实例,需要导航到不同路由则用this.$router.push方法
  • this.$route为当前路由的跳转对象,包含当前路由的name、path、query、params等属性。
原文地址:https://www.cnblogs.com/jackie-song/p/12789136.html