$route和$router的區別

$route是「路由信息對象」,包括path,params,hash,query,fullPath,matched,name等路由信息參數。 $router是「路由實例」對象包括了路由的跳轉方法,鉤子函數等。
相關文章
相關標籤/搜索