this.$router.push({
path:'/oder/oderlist',
query:{id:id}
})
跳转后接收参数
this.$route.query.id
使用v-for时
query:{id:item.id}
在v-for的方法中使用
v-for="(item,index) in TopList" :key="index" @click="getList(item.id)"
getList(id){
console.log(id)
this.$router.push({
path:'/oder/oderlist',
query:{id:id}
})
}
<router-link :to="{path:'industry_detail/', query:{id:item.id}}">