zhangzengfei
2021-06-25 b036dae92aeed291930f0efd8cf276499ebfb882
修复用户权限获取方式错误的bug
1个文件已修改
5 ■■■■■ 已修改文件
src/pages/shuohuangMonitorAnalyze/components/leftNav.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/shuohuangMonitorAnalyze/components/leftNav.vue
@@ -12,7 +12,7 @@
      :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>
@@ -82,7 +82,7 @@
  data() {
    return {
      publicPath: process.env.BASE_URL,
      activeIndex: this.isAdmin ? 'guideIndex' : 'searchForVideoAnalyze'
      activeIndex: 'guideIndex'
    }
  },
  mounted() {
@@ -92,6 +92,7 @@
    //     this.activeIndex = sessionStorage.getItem('leftNavAct');
    //   }
    // }
    this.activeIndex = this.isAdmin ? 'guideIndex' : 'searchForVideoAnalyze';
    this.$emit('menuChange', this.activeIndex);
  },