123456789101112131415161718192021222324 |
- import { createRouter, createWebHistory } from 'vue-router'
- const router = createRouter({
- history: createWebHistory(import.meta.env.BASE_URL),
- routes: [
- {
- path: '/',
- name: 'selectCar',
- component: () => import('@/views/home/SelectCar.vue'),
- },
- {
- path: '/car/:ccmNo/:positionNo',
- name: 'home',
- component: () => import('@/views/home/HomePage.vue'),
- },
- {
- path: '/arrive/:positionNo',
- name: 'arrive',
- component: () => import('@/views/home/CarArrive.vue'),
- },
- ],
- })
- export default router
|