Files
Mainpage/src/router/index.js

22 lines
388 B
JavaScript
Raw Normal View History

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