import { createRouter, createWebHashHistory } from 'vue-router' const Home = () => import('@/pages') const Detail = () => import('@/pages/Detail') const Recruit = () => import('@/pages/Recruit') const Contact = () => import('@/pages/Contact') const HardwareCase = () => import('@/pages/HardwareCase') const Company = () => import('@/pages/Company') const CaseShow = () => import('@/pages/CaseShow') const Product = () => import('@/pages/Product') // 配置路由信息 const routes = [ { path: '/', component: Home }, { path: '/detail', component: Detail }, { path: '/recruit', component: Recruit }, { path: '/contact', component: Contact }, { path: '/hardware-case', component: HardwareCase }, { path: '/company', component: Company }, { path: '/case-show', component: CaseShow }, { path: '/product', component: Product }, ] const router = createRouter({ routes, history: createWebHashHistory(), }) export default router