import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/index/index.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },
    {
      path:"/login",
      name:"login",
      component:()=>import("../views/login/index.vue")
    },
    {
      path:"/:pathMatch(.*)*",
      name:"NotFound",
      component:()=>import("../views/404/index.vue")
    }
  ],
})

export default router

