felicity-lims/frontend/vite/src/router/index.ts

22 lines
414 B
TypeScript
Raw Normal View History

2021-01-06 19:52:14 +08:00
import { RouteRecordRaw, createRouter, createWebHistory } from 'vue-router';
const routes: RouteRecordRaw[] = [
{
path: '/',
name: 'Home',
component: import('../views/App.vue'),
},
{
path: '/about',
name: 'About',
component: () => import('../views/About')
}
];
const router = createRouter({
history: createWebHistory(process.env.BASE_URL),
routes,
});
export default router;