Add home route to the router configuration with HomeView component

This commit is contained in:
2025-12-10 17:03:21 +08:00
parent 9b563b8215
commit 7f47220610

View File

@@ -1,8 +1,15 @@
import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '@/views/HomeView.vue'
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [],
routes: [
{
path: '/',
name: 'home',
component: HomeView,
},
],
})
export default router