vue路由传值
一:<router-link v-if="item" class="g-color3" target="_blank" :to="{ name: 'partyactivitydetail', query : { id: item.id } }" > 接收:this.$route.query.id 路由为:/xx?id=1 二: <router-link :to="{name: 'newdetails', params : {id:o.id }}" target="_blank" class="g-color3" > 接收:this.$route.params.id; 路由为:/xx/xx/9340314401570816 来源: https://www.cnblogs.com/yyjspace/p/11645975.html