Commit 513c90fd authored by baiyaaaaa's avatar baiyaaaaa Committed by 杨奕

fix menu bug

parent c1b062b6
......@@ -190,7 +190,7 @@
<el-radio-button :label="false">展开</el-radio-button>
<el-radio-button :label="true">收起</el-radio-button>
</el-radio-group>
<el-menu default-active="2" class="el-menu-vertical-demo" @open="handleOpen" @close="handleClose" :collapse="isCollapse">
<el-menu default-active="1-4-1" class="el-menu-vertical-demo" @open="handleOpen" @close="handleClose" :collapse="isCollapse">
<el-submenu index="1">
<template slot="title">
<i class="el-icon-message"></i>
......
......@@ -192,7 +192,7 @@
initOpenedMenu() {
const index = this.activedIndex;
const activeItem = this.items[index];
if (!activeItem || this.mode === 'horizontal') return;
if (!activeItem || this.mode === 'horizontal' || this.collapse) return;
let indexPath = activeItem.indexPath;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment