产品分化调整

This commit is contained in:
joylink_cuiweidong 2019-09-24 17:40:04 +08:00
parent 589306de80
commit 341097de50
2 changed files with 15 additions and 13 deletions

View File

@ -8,7 +8,7 @@
text-color="#fff"
active-text-color="#ffd04b"
>
<system-title></system-title>
<system-title v-if="isShow"></system-title>
<template v-for="(item,idx) in routers">
<template v-if="!item.hidden&&item.children">
<template v-if="hasOneScreenShowingChildren(item.children) &&!item.alwaysShow">
@ -67,7 +67,7 @@
</el-submenu>
</template>
</template>
<quick-entry ref="quickEntry" />
<quick-entry ref="quickEntry" v-if="isShow"/>
<user-logout ref="userLogout" />
</el-menu>
</template>
@ -77,6 +77,7 @@ import { mapGetters } from 'vuex';
import UserLogout from './Logout';
import QuickEntry from './Entry';
import SystemTitle from './Title';
import { getSessionStorage } from '@/utils/auth';
export default {
components: {
@ -86,7 +87,8 @@ export default {
},
data() {
return {
routes: []
routes: [],
isShow:false,
};
},
computed: {
@ -96,7 +98,13 @@ export default {
])
},
mounted() {
this.routes = this.$router.options.routes;
this.routes = this.$router.options.routes;
if (getSessionStorage('design')) {
this.isShow=false;
}
else{
this.isShow=true;
}
},
methods: {
toggleSideBar() {

View File

@ -1,25 +1,19 @@
<template>
<div class="avatar-container" style="left:40px;" v-if="isShow">
<div class="avatar-container" style="left:40px;">
<div class="titleInner">长安玖琏</div>
<div class="titleInner" style="margin-left:40px;">城市轨道交通实训平台</div>
</div>
</template>
<script>
import { getSessionStorage } from '@/utils/auth';
export default {
data() {
return {
isShow:false,
};
},
mounted(){
if (getSessionStorage('design')) {
this.isShow=false;
}
else{
this.isShow=true;
}
}
}
</script>