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'],
},
component: () => import('src/pages/Customer/CustomerLayout.vue'),
redirect: { path: '/customer/list' },
redirect: { name: 'CustomerList' },
children: [
{
path: '/customer/list',
path: 'list',
name: 'CustomerList',
meta: {
title: 'list'
},
component: () => import('src/pages/Customer/CustomerList.vue'),
},
{
path: '/customer/:id',
path: ':id',
component: () => import('src/pages/Customer/Card/CustomerCard.vue'),
redirect: { name: 'BasicData' },
redirect: { name: 'CustomerBasicData' },
children: [
{
path: 'basic-data',
name: 'BasicData',
name: 'CustomerBasicData',
meta: {
title: 'basicData'
},