详情页路由

{
    path: 'orderDetails/:id',
    name: 'orderDetails',
    component: orderDetails,
},

列表

vue 列表页跳转详情页获取id的方法

openDetails(row){
    //查看详情
    this.$router.push({path:'orderDetails/'+row.number})
},

详情页

this.$route.params && this.$route.params.id

vue 列表页跳转详情页获取id的方法

 

相关文章:

  • 2021-06-16
  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-16
  • 2021-06-18
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案