Currently utilizing Vue
Attempting to include path parameters in breadcrumb URLs for my app's router.
Looking to achieve something similar to the following:
{
path: 'pages/gestion/region/:reg',
name: 'gestion-depa',
component: () => import('@/views/pages/MyPage.vue'),
meta: {
breadcrumb: [
{ title: 'Home', url: '/' },
{ title: 'region', active: true, url:"/pages/list/:reg" },//Having trouble using get parameters here
{ title: 'dep', active: false }
],
pageTitle: 'Gestion',
rule: 'editor',
requiresAuth: true,
}
},
The breadcrumbs currently redirect to /pages/list/:reg, but I need them to be dynamic like /pages/list/5
Any suggestions on how to achieve this would be greatly appreciated.
Thank you.