Currently, I am immersed in a Vue project and below you will find the router code snippet:
import Vue from 'vue'
const SeanceHeader = Vue.component('SeanceHeader', {
render: (createElement) => {
console.log('render header')
return createElement('div', '')
}
})
const routes = [
{
path: '/', redirect: to => {
return '/undefined/'
}
},
{
path: '/vel/:vendorSlug/',
component: () => import('layouts/velLayout'),
children: [
{ path: '',
name: 'vel',
component: () => import('pages/velSearch'),
},
{ path: 'old',
name: 'vel_old',
component: () => import('pages/vel')
}]
},
]
Within the velLayout, there is a cart that I intend to pass to the VelSearch page/component. (I am aware of similar questions related to this topic, but in this case, it involves passing an object from the component to its children).
Thank you in advance