| | |
| | | } |
| | | }, |
| | | { |
| | | path: "/dataPush", |
| | | name: "dataPush", |
| | | component: () => import(/* webpackChunkName: "about" */ "../views/dataPush"), |
| | | meta: { |
| | | title: "数据上传" |
| | | } |
| | | }, |
| | | { |
| | | path: "/dataReport", |
| | | name: "dataReport", |
| | | component: () => import(/* webpackChunkName: "about" */ "../views/dataReport"), |
| | | meta: { |
| | | title: "数据报表" |
| | | } |
| | | }, |
| | | { |
| | | // 实时监控 |
| | | path: "/video", |
| | | name: "video", |
| | |
| | | routes |
| | | }) |
| | | |
| | | // router.beforeEach((to, from, next) => { |
| | | // if (to.meta.title) document.title = to.meta.title |
| | | // }) |
| | | router.beforeEach((to, from, next) => { |
| | | if (to.meta.title) document.title = to.meta.title |
| | | next() |
| | | }) |
| | | |
| | | export default router |