| | |
| | | import { createRouter, createWebHashHistory } from 'vue-router' |
| | | import HomeView from '../views/HomeView.vue' |
| | | |
| | | const router = createRouter({ |
| | | history: createWebHashHistory(import.meta.env.BASE_URL), |
| | | history: createWebHashHistory(), |
| | | routes: [ |
| | | { |
| | | path: '/', |
| | | name: 'home', |
| | | component: HomeView |
| | | component: () => import('../views/EnergyConsum.vue') |
| | | }, |
| | | { |
| | | path: '/PlatformCall', // 月台叫号大屏 |
| | | name: 'PlatformCall', |
| | | meta: { |
| | | title: '安泰物流月台叫号大屏' |
| | | }, |
| | | component: () => import('../views/PlatformCall.vue') |
| | | }, |
| | | { |
| | | path: '/EnergyConsum', // 能耗看板 - 安泰智慧物流园区-绿色低碳运营 |
| | | name: 'EnergyConsum', |
| | | meta: { |
| | | title: '安泰智慧物流园区-绿色低碳运营' |
| | | }, |
| | | component: () => import('../views/EnergyConsum.vue') |
| | | }, |
| | | { |
| | | path: '/LogisticsEfficiency', // 物流运行调度看板- 调度能效 |
| | | name: 'LogisticsEfficiency', |
| | | meta: { |
| | | title: '安泰智慧物流园区-调度能效跟踪' |
| | | }, |
| | | component: () => import('../views/LogisticsEfficiency.vue') |
| | | }, |
| | | { |
| | | path: '/SecurityControl', // 安防管控大屏 - |
| | | name: 'SecurityControl', |
| | | meta: { |
| | | title: '安泰智慧物流园区-安防智能监测' |
| | | }, |
| | | component: () => import('../views/SecurityControl.vue') |
| | | }, |
| | | { |
| | | path: '/LogisticsCenter', //全省物流在途-物流中心 |
| | | name: 'LogisticsCenter', |
| | | meta: { |
| | | title: '全省物流在途' |
| | | }, |
| | | component: () => import('../views/LogisticsCenter.vue') |
| | | }, |
| | | { |
| | | path: '/FireFighting', //消防监控 |
| | | name: 'FireFighting', |
| | | meta: { |
| | | title: '安泰智慧物流园区-消防态势监控' |
| | | }, |
| | | component: () => import('../views/FireFighting.vue') |
| | | }, |
| | | { |
| | | path: '/TaskEfficiency', //场内调度看板 -作业能效 |
| | | name: 'TaskEfficiency', |
| | | meta: { |
| | | title: '安泰智慧物流园区-作业效能统筹' |
| | | }, |
| | | component: () => import('../views/TaskEfficiency.vue') |
| | | }, |
| | | ] |
| | | }) |
| | | |
| | | |
| | | router.beforeEach((to, from, next) => { |
| | | window.document.title = to.meta.title |
| | | next() |
| | | }) |
| | | |
| | | export default router |