LearningRecord icon indicating copy to clipboard operation
LearningRecord copied to clipboard

$route和$router的区别

Open Rashomon511 opened this issue 5 years ago • 0 comments

$route 是路由信息对象,包括path,params,hash,query,fullPath,matched,name 等路由信息参数。

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

Rashomon511 avatar Jun 22 '19 09:06 Rashomon511