Zzc 6f2259547e refactor(3d-situational-awareness): 模块化为可组合架构
- 将功能提取到专用的可组合项中(useCesiumLifecycle、useEmergencyDispatch、useMapClickHandler、useMockData、usePathLines、useRangeCircle)
- 将常量分离到有组织的文件中(坐标、模拟数据、相机预设)
- 添加TypeScript类型定义以提高类型安全性
- 重构主组件以使用可组合模式,提高可维护性和性能
- 更新路由器和组件以支持新架构
2025-11-25 09:35:28 +08:00

64 lines
1.5 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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')
}
]
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes
})
export default router