|
|
|
@ -1,6 +1,6 @@ |
|
|
|
|
<template> |
|
|
|
|
<div> |
|
|
|
|
<el-menu :class="['nav', {home: isHome, estate: isEstate,changing: !showMenu}]" |
|
|
|
|
<el-menu :class="['nav', {estate: isEstate,changing: !showMenu}]" |
|
|
|
|
ref="elMenu" |
|
|
|
|
:key="menuRefresh" |
|
|
|
|
:mode="$store.getters.getModelType ? 'horizontal' : 'vertical' " |
|
|
|
@ -11,7 +11,7 @@ |
|
|
|
|
@select="jump" |
|
|
|
|
:default-active="String(active)"> |
|
|
|
|
<menuTree :menuList="menus" /> |
|
|
|
|
<el-submenu :popper-class="site == 2 && $store.getters.getModelType ? 'iasf-menu-popup' : isHome ? 'home-menu-popup' : ''" |
|
|
|
|
<el-submenu :popper-class="site == 2 && $store.getters.getModelType ? 'iasf-menu-popup' : ''" |
|
|
|
|
v-show="showMoreBtns" |
|
|
|
|
index="522222"> |
|
|
|
|
<template slot="title"> |
|
|
|
@ -129,16 +129,16 @@ export default { |
|
|
|
|
}, |
|
|
|
|
// 改变菜单颜色 |
|
|
|
|
handleColor () { |
|
|
|
|
const home = this.isHome |
|
|
|
|
if (this.lastHome !== home) this.showMenu = false |
|
|
|
|
this.bgColor = home ? 'transparent' : '#fff' |
|
|
|
|
this.textColor = home ? '#f9f9f9' : '#333' |
|
|
|
|
this.lastHome !== home && this.$nextTick(() => { |
|
|
|
|
setTimeout(() => { |
|
|
|
|
this.showMenu = true |
|
|
|
|
}, 200) |
|
|
|
|
}) |
|
|
|
|
this.lastHome = home |
|
|
|
|
// const home = this.isHome |
|
|
|
|
// if (this.lastHome !== home) this.showMenu = false |
|
|
|
|
// this.bgColor = home ? 'transparent' : '#fff' |
|
|
|
|
// this.textColor = home ? '#f9f9f9' : '#333' |
|
|
|
|
// this.lastHome !== home && this.$nextTick(() => { |
|
|
|
|
// setTimeout(() => { |
|
|
|
|
// this.showMenu = true |
|
|
|
|
// }, 200) |
|
|
|
|
// }) |
|
|
|
|
// this.lastHome = home |
|
|
|
|
// this.menuRefresh++ |
|
|
|
|
}, |
|
|
|
|
// 获取点击菜单的路径 |
|
|
|
|