hjyd的手机端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
945 B

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. import { createRouter, createWebHashHistory } from 'vue-router'
  2. const Home = () => import('@/pages')
  3. const Detail = () => import('@/pages/Detail')
  4. const Recruit = () => import('@/pages/Recruit')
  5. const Contact = () => import('@/pages/Contact')
  6. const HardwareCase = () => import('@/pages/HardwareCase')
  7. const Company = () => import('@/pages/Company')
  8. const CaseShow = () => import('@/pages/CaseShow')
  9. const Product = () => import('@/pages/Product')
  10. // 配置路由信息
  11. const routes = [
  12. { path: '/', component: Home },
  13. { path: '/detail', component: Detail },
  14. { path: '/recruit', component: Recruit },
  15. { path: '/contact', component: Contact },
  16. { path: '/hardware-case', component: HardwareCase },
  17. { path: '/company', component: Company },
  18. { path: '/case-show', component: CaseShow },
  19. { path: '/product', component: Product },
  20. ]
  21. const router = createRouter({
  22. routes,
  23. history: createWebHashHistory(),
  24. })
  25. export default router