mark
2022-09-30 2ec95b3d2fd484b44d5274054bcbd78307a76ef8
src/router/index.js
@@ -131,6 +131,14 @@
    }
  },
  {
    path: "/dataPush",
    name: "dataPush",
    component: () => import(/* webpackChunkName: "about" */ "../views/dataPush"),
    meta: {
      title: "数据推送"
    }
  },
  {
    // 实时监控
    path: "/video",
    name: "video",
@@ -169,8 +177,9 @@
  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