console.log( _this.$route.params.id)接收参数

 

<div class="baoming"><router-link :to="{path:'/competition/'+ssl.id}">报名</router-link></div>跳转

 

{//路由配置
path: '/competition/:id',
name: 'competition',
component: competition
},

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-11
  • 2022-12-23
  • 2021-08-06
  • 2021-10-01
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-30
  • 2021-07-11
相关资源
相似解决方案