| | |
| | | :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> |
| | |
| | | <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> |
| | |
| | | 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); |
| | | } |