From cee5605c63cb6965aefd5bf152e64db7ca2950fa Mon Sep 17 00:00:00 2001 From: carlosjr Date: Wed, 30 Mar 2022 10:06:28 +0200 Subject: [PATCH] routes naming --- src/router/modules/customer.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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' },