路由 以/:参数
分割
{
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}`})
网友评论