智慧园区前端大屏
shuishen
2024-12-02 e4cf7c610816d4d704bffc9d5e88024e64993551
路由调整
1 files modified
22 ■■■■■ changed files
src/pages/first/components/mainMenu.vue 22 ●●●●● patch | view | raw | blame | history
src/pages/first/components/mainMenu.vue
@@ -21,35 +21,35 @@
  [
    {
      menuName: '园区概况',
      path: '/layout/first/survey'
      path: '/layout/map/survey'
    },
    {
      menuName: '风险源',
      path: '/layout/first/rs'
      path: '/layout/map/rs'
    },
    {
      menuName: '应急空间',
      path: '/layout/first/space'
      path: '/layout/map/space'
    },
    {
      menuName: '应急物资',
      path: '/layout/first/supplies'
      path: '/layout/single/first/supplies'
    },
    {
      menuName: '三级防控',
      path: '/layout/first/pac'
      path: '/layout/map/first/pac'
    },
    {
      menuName: '救援队伍',
      path: '/layout/first/rt'
      path: '/layout/single/first/rt'
    },
    {
      menuName: '突发事件模拟',
      path: '/layout/first/pd'
      path: '/layout/map/first/pd'
    },
    {
      menuName: '作战图',
      path: '/layout/first/ochart'
      path: '/layout/single/first/ochart'
    },
  ]
)
@@ -59,12 +59,6 @@
  if (params.path) {
    if (router.currentRoute.value.path == params.path) return
    if (params.path == '/layout/first/supplies' || params.path == '/layout/first/rt' || params.path == '/layout/first/ochart') {
      store.setLoadSingle(true)
    } else {
      store.setLoadSingle(false)
    }
    router.push({
      path: params.path
    })