| | |
| | | :default-active="activeIndex" |
| | | @select="handleSelect" |
| | | > |
| | | <el-menu-item index="guideIndex" v-if="isAdmin"> |
| | | <el-menu-item index="guideIndex" v-show="isAdmin"> |
| | | <i class="iconfont iconshouye"></i> |
| | | <span slot="title">首页</span> |
| | | </el-menu-item> |
| | |
| | | data() { |
| | | return { |
| | | publicPath: process.env.BASE_URL, |
| | | activeIndex: this.isAdmin ? 'guideIndex' : 'searchForVideoAnalyze' |
| | | activeIndex: 'guideIndex' |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | // this.activeIndex = sessionStorage.getItem('leftNavAct'); |
| | | // } |
| | | // } |
| | | this.activeIndex = this.isAdmin ? 'guideIndex' : 'searchForVideoAnalyze'; |
| | | |
| | | this.$emit('menuChange', this.activeIndex); |
| | | }, |