this.$router 实际上就是全局路由对象任何页面都可以调用 push(), go()等方法;
this.$route 表示当前正在用于跳转的路由器对象,可以调用其name、path、query、params等属性。
vue this.$router.push和this.$route.path的区别
你必须穷尽一生磨练技能,这就是成功的秘诀,也是让人家敬重的关键。
this.$router 实际上就是全局路由对象任何页面都可以调用 push(), go()等方法;
this.$route 表示当前正在用于跳转的路由器对象,可以调用其name、path、query、params等属性。