Commit 8ba6b580 authored by Leopoldthecoder's avatar Leopoldthecoder Committed by 杨奕

Menu: fix close menu bug

parent 2999279a
...@@ -165,7 +165,10 @@ ...@@ -165,7 +165,10 @@
this.openedMenus.push(index); this.openedMenus.push(index);
}, },
closeMenu(index) { closeMenu(index) {
this.openedMenus.splice(this.openedMenus.indexOf(index), 1); const i = this.openedMenus.indexOf(index);
if (i !== -1) {
this.openedMenus.splice(i, 1);
}
}, },
handleSubmenuClick(submenu) { handleSubmenuClick(submenu) {
const { index, indexPath } = submenu; const { index, indexPath } = submenu;
......
...@@ -160,6 +160,10 @@ ...@@ -160,6 +160,10 @@
} }
} }
.el-menu .el-submenu {
min-width: 200px;
}
.el-submenu { .el-submenu {
position: relative; position: relative;
& .el-menu { & .el-menu {
......
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