index.ts 313 B

123456789101112131415
  1. import { createRouter, createWebHistory } from 'vue-router'
  2. import HomeView from '../views/home/index.vue'
  3. const router = createRouter({
  4. history: createWebHistory(import.meta.env.BASE_URL),
  5. routes: [
  6. {
  7. path: '/',
  8. name: 'home',
  9. component: HomeView,
  10. },
  11. ],
  12. })
  13. export default router