|
|
|
|
@ -1,7 +1,7 @@ |
|
|
|
|
<template> |
|
|
|
|
<div> |
|
|
|
|
<el-menu class="top-menu" :default-active="activeIndex" mode="horizontal" text-color="#333" ellipsis |
|
|
|
|
style="width: 900px"> |
|
|
|
|
<el-menu class="top-menu custom-menu" :default-active="activeIndex" mode="horizontal" ellipsis |
|
|
|
|
style="width: 900px" > |
|
|
|
|
<!-- <el-menu-item index="0" @click="openHome(itemHome)"> |
|
|
|
|
<template #title> |
|
|
|
|
<i :class="itemHome.source" style="padding-right: 5px"></i> |
|
|
|
|
@ -78,10 +78,10 @@ export default { |
|
|
|
|
methods: { |
|
|
|
|
openMenu(item) { |
|
|
|
|
console.log('item------------------------', item) |
|
|
|
|
if(this.setting.styleRadio == '3'||this.setting.styleRadio == '4'){ |
|
|
|
|
this.index.openMenu2(item); |
|
|
|
|
}else{ |
|
|
|
|
this.index.openMenu(item); |
|
|
|
|
if (this.setting.styleRadio == '3' || this.setting.styleRadio == '4') { |
|
|
|
|
this.index.openMenu2(item); |
|
|
|
|
} else { |
|
|
|
|
this.index.openMenu(item); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.$store.commit('SET_ACTIVE_INDEX', item.id + ''); |
|
|
|
|
@ -90,7 +90,7 @@ export default { |
|
|
|
|
// if(this.setting.styleRadio == '3'){ |
|
|
|
|
// this.index.openMenu2(item); |
|
|
|
|
// }else{ |
|
|
|
|
this.index.openMenu(item); |
|
|
|
|
this.index.openMenu(item); |
|
|
|
|
// } |
|
|
|
|
this.$router.push(this.tagWel); |
|
|
|
|
}, |
|
|
|
|
@ -147,4 +147,26 @@ export default { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// :deep(.el-menu--horizontal>.el-menu-item.is-active) { |
|
|
|
|
// background-color: #dceeff !important; |
|
|
|
|
// } |
|
|
|
|
.custom-menu .el-menu-item.is-active { |
|
|
|
|
background-color: #f3f3f3 !important; /* 修改选中项的背景色 */ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* 如果需要修改选中时span标签的文字颜色,可以嵌套样式 */ |
|
|
|
|
.el-menu-item.is-active span { |
|
|
|
|
color: #fff !important; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
:deep(.el-menu-item.is-active i) { |
|
|
|
|
color: #06f !important; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
:deep(.el-menu-item.is-active span) { |
|
|
|
|
color: #06f !important; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
</style> |