<el-menu
:default-active="defaultActive"
class="el-menu-vertical-demo"
:style="{background:mixins_header_bg}"
text-color="#F3FFFF"
active-text-color="#ffffff"
@open="handleOpen"
@close="handleClose"
:collapse="isCollapse"
@select="selectmenu"//-----------------------重点
>
<el-menu-item
v-for="item in menuList"
:index="item.key"
:key="item.index"
ref="menuItemRef"
:style="{background:mixins_header_bg}"
selectmenu(index) {
this.defaultActive = index
},