$route和$router的区别

$route:当前路由对象,可以获取当前路由身上的参数。包括 path,params,hash,query,fullPath,matched,name 等路由信息参数,⽆法跳转⻚⾯
$router:全局路由对象,可以进⾏⻚⾯跳转
posted @ 2022-06-25 17:13  bug制造者~~  阅读(31)  评论(0)    收藏  举报