From feaf0a9778879ef211c5587a513ba4cbdabb52d0 Mon Sep 17 00:00:00 2001 From: ZZJ <10913410+zzj2100@user.noreply.gitee.com> Date: 星期四, 23 六月 2022 17:42:58 +0800 Subject: [PATCH] bug修复 --- src/pages/shuohuangMonitorAnalyze/components/leftNav.vue | 43 ++++++++++++++++++++++--------------------- 1 files changed, 22 insertions(+), 21 deletions(-) diff --git a/src/pages/shuohuangMonitorAnalyze/components/leftNav.vue b/src/pages/shuohuangMonitorAnalyze/components/leftNav.vue index 6511563..9b605fd 100644 --- a/src/pages/shuohuangMonitorAnalyze/components/leftNav.vue +++ b/src/pages/shuohuangMonitorAnalyze/components/leftNav.vue @@ -1,8 +1,14 @@ <template> <div class="left-nav"> <h1> - <img class="icon" :src="`${publicPath}images/shuohuang/railroad.png`" style="height: 40px;" /> - <span v-show="!isCollapse" style="padding-left: 6px;">鏈旈粍閾佽矾鏈鸿締鍒嗗叕鍙�</span> + <img + class="icon" + :src="`${publicPath}images/shuohuang/railroad.png`" + style="height: 40px" + /> + <span v-show="!isCollapse" style="padding-left: 6px" + >鏈旈粍閾佽矾鏈鸿締鍒嗗叕鍙�</span + > </h1> <el-menu class="el-menu-vertical-demo" @@ -40,7 +46,7 @@ </template> <el-menu-item index="transferMemo">瑙嗛杞偍璁板綍</el-menu-item> <el-menu-item index="transferDeviceManage">杞偍璁惧绠$悊</el-menu-item> - <el-menu-item index="lkgManage">LKG鏁版嵁绠$悊</el-menu-item> + <el-menu-item index="lkgManage">LKJ鏁版嵁绠$悊</el-menu-item> </el-submenu> <el-submenu index="7" v-if="isAdmin"> <template slot="title"> @@ -55,17 +61,16 @@ </template> <script> - //import railroadImg from '/images/shuohuang/railroad.png'; export default { props: { isCollapse: { type: Boolean, - default: true + default: true, }, menuChange: { - type: Function - } + type: Function, + }, }, computed: { isAdmin() { @@ -82,8 +87,8 @@ data() { return { publicPath: process.env.BASE_URL, - activeIndex: 'guideIndex' - } + activeIndex: "guideIndex", + }; }, mounted() { // if (this.isAdmin) { @@ -92,24 +97,20 @@ // this.activeIndex = sessionStorage.getItem('leftNavAct'); // } // } - this.activeIndex = this.isAdmin ? 'guideIndex' : 'searchForVideoAnalyze'; + this.activeIndex = this.isAdmin ? "guideIndex" : "searchForVideoAnalyze"; - this.$emit('menuChange', this.activeIndex); + this.$emit("menuChange", this.activeIndex); }, methods: { handleSelect(index, indePath) { this.activeIndex = index; - sessionStorage.setItem('leftNavAct', this.activeIndex); - this.$emit('menuChange', index); + sessionStorage.setItem("leftNavAct", this.activeIndex); + this.$emit("menuChange", index); }, - handleOpen() { - - }, - handleClose() { - - } - } -} + handleOpen() {}, + handleClose() {}, + }, +}; </script> <style lang="scss"> -- Gitblit v1.8.0