34 lines
650 B
JavaScript
34 lines
650 B
JavaScript
import { createRouter, createWebHistory } from 'vue-router';
|
|
import Dashboard from './views/Dashboard.vue';
|
|
import ContactList from './views/ContactList.vue';
|
|
|
|
const routes = [
|
|
{
|
|
path: '/',
|
|
name: 'Dashboard',
|
|
component: Dashboard
|
|
},
|
|
{
|
|
path: '/contacts',
|
|
name: 'ContactList',
|
|
component: ContactList
|
|
},
|
|
{
|
|
path: '/companies',
|
|
name: 'CompanyList',
|
|
component: () => import('./views/CompanyList.vue')
|
|
},
|
|
{
|
|
path: '/deals',
|
|
name: 'DealList',
|
|
component: () => import('./views/DealList.vue')
|
|
}
|
|
];
|
|
|
|
const router = createRouter({
|
|
history: createWebHistory(),
|
|
routes
|
|
});
|
|
|
|
export default router;
|