2022-03-11 10:25:30 +00:00
|
|
|
import { RouteRecordRaw } from 'vue-router';
|
|
|
|
|
|
|
|
const routes: RouteRecordRaw[] = [
|
2022-03-11 10:41:23 +00:00
|
|
|
{
|
|
|
|
path: '/login',
|
|
|
|
name: 'Login',
|
|
|
|
component: () => import('../pages/Login/Login.vue'),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/',
|
|
|
|
name: 'Main',
|
2022-03-11 11:59:10 +00:00
|
|
|
component: () => import('../layouts/Main.vue'),
|
2022-03-11 10:41:23 +00:00
|
|
|
redirect: { name: 'Dashboard' },
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '/dashboard',
|
|
|
|
name: 'Dashboard',
|
|
|
|
component: () => import('../pages/Dashboard/Dashboard.vue'),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/customer',
|
|
|
|
name: 'Customer',
|
|
|
|
component: () => import('../pages/Customer/Customer.vue'),
|
|
|
|
redirect: { name: 'List' },
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'list',
|
|
|
|
name: 'List',
|
|
|
|
component: () => import('../pages/Customer/List.vue'),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: ':id',
|
|
|
|
name: 'Card',
|
|
|
|
component: () => import('../pages/Customer/Card/Card.vue'),
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/:pathMatch(.*)*',
|
|
|
|
name: 'NotFound',
|
2022-03-11 11:59:10 +00:00
|
|
|
component: () => import('../pages/NotFound.vue'),
|
2022-03-11 10:41:23 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2022-03-11 10:25:30 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
export default routes;
|