文章目录
先说用法
$router
想要导航到不同url,则使用router.push方法
// this.$router.push()
// this.$router.replace()
// this.$router.go()
$route
获取name、path、query、params等用$route
先说用法
$router
想要导航到不同url,则使用router.push方法
// this.$router.push()
// this.$router.replace()
// this.$router.go()
$route
获取name、path、query、params等用$route