20 lines
399 B
TypeScript
20 lines
399 B
TypeScript
import { createRouter, createWebHistory } from 'vue-router'
|
|
import HomeView from '@/views/HomeView.vue'
|
|
import LoginView from '@/views/LoginView.vue'
|
|
|
|
const router = createRouter({
|
|
history: createWebHistory(import.meta.env.BASE_URL),
|
|
routes: [
|
|
{
|
|
path: '/',
|
|
component: HomeView,
|
|
},
|
|
{
|
|
path: '/login',
|
|
component: LoginView,
|
|
},
|
|
],
|
|
})
|
|
|
|
export default router
|