this.$router
是Vue-Router的实例,需要导航到不同路由则用this.$router.push方法this.$route
为当前路由的跳转对象,包含当前路由的name、path、query、params等属性。
this.$router 与this.$route的区别
猜你喜欢
转载自www.cnblogs.com/jackie-song/p/12789136.html
今日推荐
周排行