$route和$router的区别

  • $route是“路由信息对象”,包括path,params,hash,query,fullPath,matched,name等路由信息参数。
  • $router是“路由实例”对象包括了路由的跳转方法,钩子函数等。
posted @ 2020-10-16 16:42  俩只猫  阅读(98)  评论(0编辑  收藏  举报