$route和$router是有区别的 $router是VueRouter实例,想要导航到不同的URL,使用$router.push方法。 $route是当前router的跳转对象,可以获取name、path等等