diff --git a/src/router/modules/customer.js b/src/router/modules/customer.js index fbc160929..84c971584 100644 --- a/src/router/modules/customer.js +++ b/src/router/modules/customer.js @@ -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' },