zhangzengfei
2021-01-28 0f70bb5e95342e1c88e16b4c12609cd45dd1b103
src/pages/shuohuangMonitorAnalyze/components/leftNav.vue
@@ -12,7 +12,7 @@
      :default-active="activeIndex"
      @select="handleSelect"
    >
      <el-menu-item index="1">
      <el-menu-item index="guideIndex">
        <i class="iconfont iconshouye"></i>
        <span slot="title">首页</span>
      </el-menu-item>
@@ -46,8 +46,8 @@
          <i class="iconfont iconkeshihua"></i>
          <span slot="title">可视化大屏</span>
        </template>
        <el-menu-item index="7-1">任务大屏</el-menu-item>
        <el-menu-item index="7-2">隐患大屏</el-menu-item>
        <el-menu-item index="taskscreen">任务大屏</el-menu-item>
        <el-menu-item index="hiddendangerscreen">隐患大屏</el-menu-item>
      </el-submenu>
    </el-menu>
  </div>
@@ -69,13 +69,13 @@
  data () {
    return {
      publicPath: process.env.BASE_URL,
      activeIndex: 'searchForVideoAnalyze'
      activeIndex: 'guideIndex'
    }
  },
  mounted(){
    console.log('mounted')
    window.onbeforeunload = () => {
      debugger
      // debugger
      console.log('beforeunload')
      sessionStorage.setItem('leftNavAct', this.activeIndex);
    }