|
@@ -13,7 +13,7 @@
|
|
|
<div
|
|
|
v-for='(item, index) in list'
|
|
|
:key='index'
|
|
|
- :class='{ "is-active": item.state,"hide-home-page":item.hideHomePage }'
|
|
|
+ :class='{ "is-active": item.state }'
|
|
|
@click='clickEventAcitve(item, index)'
|
|
|
>{{ item.name }}</div>
|
|
|
</div>
|
|
@@ -48,8 +48,6 @@ export default {
|
|
|
return {
|
|
|
state: '',
|
|
|
list: [
|
|
|
- // { name: '', state: false, route: 'homepage' },
|
|
|
- //TODO: 显示首页 liujiandong用户路由跳转处理
|
|
|
{ name: '首页', state: false, route: 'homepage' },
|
|
|
{ name: '项目概况', state: false, route: 'overview' },
|
|
|
{ name: '楼层功能', state: false, route: 'floorFunc' }, //楼层功能
|
|
@@ -81,11 +79,6 @@ export default {
|
|
|
$route: 'handleRoute'
|
|
|
},
|
|
|
created() {
|
|
|
- console.log('menulist created,',this.$store.state.userInfo)
|
|
|
- // 非liujiandong用户,隐藏首页入口
|
|
|
- if(this.$store.state.userInfo.username !== 'liujiandong'){
|
|
|
- this.$set(this.list,0,{ name: '', state: false, route: 'homepage', hideHomePage: true })
|
|
|
- }
|
|
|
this.currentTime()
|
|
|
},
|
|
|
mounted() {
|
|
@@ -263,16 +256,7 @@ export default {
|
|
|
margin: 0 8px;
|
|
|
cursor: pointer;
|
|
|
transition: all 0.2s;
|
|
|
- // TODO: 取消隐藏 首页菜单,
|
|
|
- /* &:first-child {
|
|
|
- display: none;
|
|
|
- } */
|
|
|
- }
|
|
|
- // 改为动态根据 : 用户不是liujiandong时,隐藏首页
|
|
|
- .hide-home-page{
|
|
|
- display: none;
|
|
|
}
|
|
|
-
|
|
|
.is-active {
|
|
|
color: #025baa;
|
|
|
font-weight: bolder;
|