$route和$router的区别

$route和$router的区别

$route是路由信息对象,包括path、params、name、query等路由信息参数

$router是路由实例对象,包括了路由的跳转方法,钩子函数等

原文地址:https://www.cnblogs.com/zhd09/p/12125389.html