routes naming
This commit is contained in:
parent
30e54c5333
commit
cee5605c63
|
@ -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'
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue