96 lines
2.2 KiB
JavaScript
96 lines
2.2 KiB
JavaScript
import component from 'element-plus/es/components/tree-select/src/tree-select-option.mjs'
|
||
import { createRouter, createWebHistory } from 'vue-router'
|
||
|
||
const routes = [
|
||
{
|
||
path: '/',
|
||
name: 'Home',
|
||
component: () => import('../views/Home.vue')
|
||
},
|
||
{
|
||
path: '/cockpit',
|
||
name: 'Cockpit',
|
||
meta: {
|
||
screen: true
|
||
},
|
||
component: () => import('../views/cockpit/index.vue')
|
||
},
|
||
{
|
||
path: '/yhz',
|
||
name: 'yhz',
|
||
component: () => import('../views/ServiceStationManagePage/index.vue')
|
||
},
|
||
{
|
||
path: '/yhzsb/:data?',
|
||
name: 'yhzsb',
|
||
component: () => import('../views/EquipmentManagement/index.vue')
|
||
},
|
||
{
|
||
path: '/yhzwz/:data?',
|
||
name: 'yhzwz',
|
||
component: () => import('../views/MaterialManagement/index.vue')
|
||
},
|
||
{
|
||
path: '/yhzevent',
|
||
name: 'yhzevent',
|
||
component: () => import('../views/SnowEventManagement/index.vue')
|
||
},
|
||
{
|
||
path: '/airSkyLand',
|
||
name: 'airskyland',
|
||
meta: {
|
||
screen: true
|
||
},
|
||
component: () => import('../views/airSkyLand/AirSkyLand.vue')
|
||
|
||
},
|
||
{
|
||
path: '/3DSituationalAwareness',
|
||
name: '3DSituationalAwareness',
|
||
meta: {
|
||
screen: true,
|
||
skipInitialCameraView: true // 跳过MapViewport的自动初始视图,由页面自己控制相机
|
||
},
|
||
component: () => import('../views/3DSituationalAwarenessRefactor/index.vue')
|
||
},
|
||
{
|
||
path: '/riskWarning',
|
||
name: 'RiskWarning',
|
||
meta: {
|
||
screen: true
|
||
},
|
||
component: () => import('../views/RiskWarning/index.vue')
|
||
},
|
||
{
|
||
path: '/regulationsDivision',
|
||
name: 'RegulationsDivision',
|
||
meta: {
|
||
screen: true
|
||
},
|
||
component: () => import('../views/RegulationsDivision/RegulationsDivision.vue')
|
||
},
|
||
{
|
||
path: '/warningCounty',
|
||
name: 'WarningCounty',
|
||
meta: {
|
||
screen: true
|
||
},
|
||
component: () => import('../views/warningCounty/warningCounty.vue')
|
||
},
|
||
{
|
||
path: '/constructionDepartment',
|
||
name: 'ConstructionDepartment',
|
||
meta: {
|
||
screen: true
|
||
},
|
||
component: () => import('../views/ConstructionDepartment/ConstructionDepartment.vue')
|
||
},
|
||
]
|
||
|
||
const router = createRouter({
|
||
history: createWebHistory(import.meta.env.BASE_URL),
|
||
routes
|
||
})
|
||
|
||
export default router
|