路由跳转携带参数
this.$router.push(
{
path:'/home',
query:{
val:123
}
}
)
在另一个页面接收
this.$route.query.val
跳转时使用this.$router ,接收使用this.$route没有r
路由跳转携带参数
this.$router.push(
{
path:'/home',
query:{
val:123
}
}
)
在另一个页面接收
this.$route.query.val
跳转时使用this.$router ,接收使用this.$route没有r