12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- 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: 'sthouse/:stcd',
- name: 'sthouse',
- component: () => import('@/views/StationHouse.vue'),
- },
- {
- path: 'detail/:id',
- name: 'detail',
- component: () => import('@/views/Detail.vue'),
- },
- {
- path: 'device/:stcd/:deviceid',
- name: 'device',
- component: () => import('@/views/Device.vue'),
- }, {
- path: 'sw/:stcd',
- name: 'sw',
- component: () => import('@/views/Sw.vue'),
- },
- ],
- },
- ],
- })
- export default router
|