From b036dae92aeed291930f0efd8cf276499ebfb882 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@iotlink.com> Date: 星期五, 25 六月 2021 19:03:22 +0800 Subject: [PATCH] 修复用户权限获取方式错误的bug --- src/pages/shuohuangMonitorAnalyze/components/leftNav.vue | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/shuohuangMonitorAnalyze/components/leftNav.vue b/src/pages/shuohuangMonitorAnalyze/components/leftNav.vue index ca5cdcd..2087052 100644 --- a/src/pages/shuohuangMonitorAnalyze/components/leftNav.vue +++ b/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); }, -- Gitblit v1.8.0