$route和$router的区别

$route为当前router跳转对象里面可以获取name、path、query、params等

router.push方法

返回上一个history也是使用$router.go方法

你可能感兴趣的:($route和$router的区别)