2025-10-30 15:34:23 +08:00
|
|
|
import component from 'element-plus/es/components/tree-select/src/tree-select-option.mjs'
|
2025-10-15 14:07:39 +08:00
|
|
|
import { createRouter, createWebHistory } from 'vue-router'
|
|
|
|
|
|
|
|
|
|
const routes = [
|
|
|
|
|
{
|
|
|
|
|
path: '/',
|
|
|
|
|
name: 'Home',
|
|
|
|
|
component: () => import('../views/Home.vue')
|
2025-10-31 15:35:54 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/cockpit',
|
|
|
|
|
name: 'Cockpit',
|
|
|
|
|
component: () => import('../views/cockpit/index.vue')
|
2025-10-31 15:40:24 +08:00
|
|
|
},
|
2025-10-30 15:34:23 +08:00
|
|
|
{
|
2025-10-31 16:27:41 +08:00
|
|
|
path: '/yhz',
|
|
|
|
|
name: 'yhz',
|
2025-10-30 15:34:23 +08:00
|
|
|
component: () => import('../views/ServiceStationManagePage/index.vue')
|
2025-11-03 11:33:56 +08:00
|
|
|
},
|
|
|
|
|
{
|
2025-11-06 11:17:05 +08:00
|
|
|
path: '/yhzsb/:data',
|
2025-11-03 11:33:56 +08:00
|
|
|
name: 'yhzsb',
|
|
|
|
|
component: () => import('../views/EquipmentManagement/index.vue')
|
2025-11-04 10:13:02 +08:00
|
|
|
},
|
|
|
|
|
{
|
2025-11-06 11:17:05 +08:00
|
|
|
path: '/yhzwz/:data',
|
2025-11-04 10:13:02 +08:00
|
|
|
name: 'yhzwz',
|
|
|
|
|
component: () => import('../views/MaterialManagement/index.vue')
|
2025-10-15 14:07:39 +08:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
const router = createRouter({
|
2025-11-05 11:18:50 +08:00
|
|
|
history: createWebHistory(import.meta.env.BASE_URL),
|
2025-10-15 14:07:39 +08:00
|
|
|
routes
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
export default router
|