123456789101112131415161718192021222324252627282930313233343536373839 |
- import {createRouter, createWebHistory} from 'vue-router'
- import layout from '@/layout/index.vue'
- const router = createRouter({
- history: createWebHistory(import.meta.env.BASE_URL),
- routes: [
- {
- path: '/',
- redirect: '/index',
- component: layout,
- children: [
- {
- path: 'index',
- name: 'home',
- component: () => import('@/views/Home.vue'),
- },
- {
- path: 'station/:stcd',
- name: 'station',
- component: () => import('@/views/Station.vue'),
- },{
- path: 'situational/:stcd',
- name: 'situational',
- component: () => import('@/views/Situational.vue'),
- },{
- path: 'intelloper/:stcd',
- name: 'intelloper',
- component: () => import('@/views/IntellOper.vue'),
- },{
- path: 'detail/:stcd',
- name: 'detail',
- component: () => import('@/views/Detail.vue'),
- },
- ],
- },
- ],
- })
- export default router
|