vue路由传参显式隐式
显式
this.$router.push({
path:'/home',
query:{
id
}
})
隐式
this.$router.push({
name:'home',
params:{
id
}
})
没有什么是一蹴而就的。
显式
this.$router.push({
path:'/home',
query:{
id
}
})
隐式
this.$router.push({
name:'home',
params:{
id
}
})