index.ts 568 B

123456789101112131415161718192021222324
  1. import { createRouter, createWebHistory } from 'vue-router'
  2. const router = createRouter({
  3. history: createWebHistory(import.meta.env.BASE_URL),
  4. routes: [
  5. {
  6. path: '/',
  7. name: 'selectCar',
  8. component: () => import('@/views/home/SelectCar.vue'),
  9. },
  10. {
  11. path: '/car/:ccmNo/:positionNo',
  12. name: 'home',
  13. component: () => import('@/views/home/HomePage.vue'),
  14. },
  15. {
  16. path: '/arrive/:positionNo',
  17. name: 'arrive',
  18. component: () => import('@/views/home/CarArrive.vue'),
  19. },
  20. ],
  21. })
  22. export default router