Files
Mainpage/src/router/index.js

21 lines
370 B
JavaScript
Raw Normal View History

2025-03-01 21:30:49 +08:00
import { createRouter, createWebHistory } from 'vue-router'
const routes = [
2025-03-03 19:59:03 +08:00
{
path: '/',
name: 'home',
component: () => import('@/views/HomeView.vue')
2025-03-03 19:59:03 +08:00
},
{
path: '/about',
name: 'about',
component: () => import('@/views/AboutView.vue')
2025-03-03 19:59:03 +08:00
}
2025-03-01 21:30:49 +08:00
]
const router = createRouter({
history: createWebHistory(),
routes
})
export default router