salix-front/src/router/routes.js

35 lines
1018 B
JavaScript
Raw Normal View History

import customer from './modules/customer';
import ticket from './modules/ticket';
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/Login.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-03-11 10:41:23 +00:00
component: () => import('../pages/Dashboard/Dashboard.vue'),
},
/* {
path: '/:pathMatch(.*)*',
name: 'NotFound',
component: () => import('../pages/NotFound.vue'),
}, */
// Module routes
customer,
ticket,
2022-03-11 10:41:23 +00:00
],
},
2022-03-11 10:25:30 +00:00
];
2022-03-24 15:49:33 +00:00
export default routes;