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

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

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

posted @ 2020-04-05 22:43  呼丿  阅读(636)  评论(0编辑  收藏  举报