美文网首页
VUE 通过URL传递多个参数

VUE 通过URL传递多个参数

作者: 抽疯的稻草绳 | 来源:发表于2021-05-06 16:27 被阅读0次
路由 以/:参数分割

  {
    path: '/descDrackLive',
    component: Layout,
    hidden: true,
    children: [{
      path: '/descDrackLive/index/:id/:title/:trackingLive',
      component: () => import("@/views/trackLive/component/descForm.vue"),
      name: 'descDrackLive'
    }]
  },

跳转以/路由定义的参数分割

    this.$router.push({path:`/descDrackLive/index/${data.id}/${data.title}/${data.trackingLive}`})

相关文章

网友评论

      本文标题:VUE 通过URL传递多个参数

      本文链接:https://www.haomeiwen.com/subject/bynrdltx.html