routes naming

This commit is contained in:
Carlos Jimenez Ruiz 2022-03-30 10:06:28 +02:00
parent 30e54c5333
commit cee5605c63
1 changed files with 6 additions and 5 deletions

View File

@ -7,23 +7,24 @@ export default {
roles: ['salesPerson'], roles: ['salesPerson'],
}, },
component: () => import('src/pages/Customer/CustomerLayout.vue'), component: () => import('src/pages/Customer/CustomerLayout.vue'),
redirect: { path: '/customer/list' }, redirect: { name: 'CustomerList' },
children: [ children: [
{ {
path: '/customer/list', path: 'list',
name: 'CustomerList',
meta: { meta: {
title: 'list' title: 'list'
}, },
component: () => import('src/pages/Customer/CustomerList.vue'), component: () => import('src/pages/Customer/CustomerList.vue'),
}, },
{ {
path: '/customer/:id', path: ':id',
component: () => import('src/pages/Customer/Card/CustomerCard.vue'), component: () => import('src/pages/Customer/Card/CustomerCard.vue'),
redirect: { name: 'BasicData' }, redirect: { name: 'CustomerBasicData' },
children: [ children: [
{ {
path: 'basic-data', path: 'basic-data',
name: 'BasicData', name: 'CustomerBasicData',
meta: { meta: {
title: 'basicData' title: 'basicData'
}, },