|
@@ -18,28 +18,24 @@ const routes = [
|
|
|
path: '/admin',
|
|
path: '/admin',
|
|
|
routes: [
|
|
routes: [
|
|
|
{
|
|
{
|
|
|
- name: 'admin.products',
|
|
|
|
|
|
|
+ name: 'products',
|
|
|
path: '/admin/products',
|
|
path: '/admin/products',
|
|
|
component: './Admin/Product',
|
|
component: './Admin/Product',
|
|
|
- // access: 'routeFilter',
|
|
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/admin/products/:id',
|
|
path: '/admin/products/:id',
|
|
|
component: './Admin/Product/Detail',
|
|
component: './Admin/Product/Detail',
|
|
|
hideInMenu: true,
|
|
hideInMenu: true,
|
|
|
- // access: 'routeFilter',
|
|
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- name: 'admin.depts',
|
|
|
|
|
|
|
+ name: 'depts',
|
|
|
path: '/admin/depts',
|
|
path: '/admin/depts',
|
|
|
component: './Admin/Dept',
|
|
component: './Admin/Dept',
|
|
|
- // access: 'routeFilter',
|
|
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- name: 'admin.users',
|
|
|
|
|
|
|
+ name: 'users',
|
|
|
path: '/admin/users',
|
|
path: '/admin/users',
|
|
|
component: './Admin/User',
|
|
component: './Admin/User',
|
|
|
- // access: 'routeFilter',
|
|
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|