salix-front/src/router/routes.js

42 lines
1.1 KiB
JavaScript
Raw Normal View History

2022-04-19 10:37:47 +00:00
import customer from './modules/customer';
import ticket from './modules/ticket';
2022-10-17 14:23:19 +00:00
import claim from './modules/claim';
2022-11-17 13:03:50 +00:00
import worker from './modules/worker';
2022-11-21 12:45:48 +00:00
import invoiceOut from './modules/invoiceOut';
2022-03-11 10:25:30 +00:00
2022-03-24 12:33:14 +00:00
const routes = [
2022-03-11 10:41:23 +00:00
{
path: '/login',
name: 'Login',
2022-03-14 09:36:52 +00:00
meta: { title: 'logIn' },
component: () => import('../pages/Login/LoginMain.vue'),
2022-03-11 10:41:23 +00:00
},
{
path: '/',
name: 'Main',
2022-03-24 15:49:33 +00:00
component: () => import('../layouts/MainLayout.vue'),
2022-03-11 10:41:23 +00:00
redirect: { name: 'Dashboard' },
children: [
{
path: '/dashboard',
name: 'Dashboard',
meta: { title: 'dashboard', icon: 'dashboard' },
2022-12-19 10:23:08 +00:00
component: () => import('../pages/Dashboard/DashboardMain.vue'),
2022-04-12 12:53:43 +00:00
},
// Module routes
2022-04-19 10:37:47 +00:00
customer,
ticket,
2022-10-17 14:23:19 +00:00
claim,
2022-11-17 13:03:50 +00:00
worker,
2022-11-21 12:45:48 +00:00
invoiceOut,
{
2022-12-20 11:30:25 +00:00
path: '/:catchAll(.*)*',
name: 'NotFound',
component: () => import('../pages/NotFound.vue'),
},
2022-03-11 10:41:23 +00:00
],
},
2022-03-11 10:25:30 +00:00
];
2022-11-21 12:45:48 +00:00
export default routes;