import { createRouter, createWebHistory } from 'vue-router'

// 其他路由将在对应页面组件创建后添加
const routes = [
  {
    path: '/',
    name: 'Home',
    component: () => import('@/pages/home/Index.vue'),
  },
  {
    path: '/products',
    name: 'Products',
    component: () => import('@/pages/products/Index.vue'),
  },
  {
    path: '/cases',
    name: 'Cases',
    component: () => import('@/pages/cases/Index.vue'),
  },
  {
    path: '/casesdetails',
    name: 'Casesdetails',
    component: () => import('@/pages/casesdetails/Index.vue'),
  },
  {
    path: '/about',
    name: 'About',
    component: () => import('@/pages/about/Index.vue'),
  },
  {
    path: '/contact',
    name: 'Contact',
    component: () => import('@/pages/contact/Index.vue'),
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes,
})

export default router