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

this.$router:表示全局路由对象,里面包含属性push(),可以在任意页面实现路由跳转  

this.$route:表示当前路由对象,里面包含属性name  path query params等

猜你喜欢

转载自www.cnblogs.com/doudou-123/p/12639671.html