this.$route和this.$router区别

this.$route 和 this.$router 这两个对象有什么区别:

  this.$route 是当前路由跳转对象,包含当前路由的name、path、query、params等属性

  this.$router 是路由导航对象,使用它跳转到其他不同url地址

猜你喜欢

转载自www.cnblogs.com/spll/p/11567132.html