方式一:通过params的方式,
this.$router.push({
name: "full",
params: {
name: "liurui788",
id: "kj",
ids: "1025"
}
})
方式二: 通过路由配置的形式
this.$router.push("/full/"+id)
路由的配置
{
path: '/full/:id',
name: 'full',
component: full
}
接收路由传递参数
var name = this.$route.params.name;
网友评论