$router 和 $route的区别

文章目录

先说用法
$router

想要导航到不同url,则使用router.push方法

// this.$router.push()
// this.$router.replace()
// this.$router.go()

$route

获取name、path、query、params等用$route

参考
$router 和 $route

猜你喜欢

转载自blog.csdn.net/weixin_43755104/article/details/107681095