mirror of https://github.com/ElemeFE/element
Remove useless parameters
parent
5f05fd18fd
commit
f68af37f26
|
@ -164,7 +164,7 @@
|
||||||
}
|
}
|
||||||
this.openedMenus.push(index);
|
this.openedMenus.push(index);
|
||||||
},
|
},
|
||||||
closeMenu(index, indexPath) {
|
closeMenu(index) {
|
||||||
this.openedMenus.splice(this.openedMenus.indexOf(index), 1);
|
this.openedMenus.splice(this.openedMenus.indexOf(index), 1);
|
||||||
},
|
},
|
||||||
handleSubmenuClick(submenu) {
|
handleSubmenuClick(submenu) {
|
||||||
|
@ -172,7 +172,7 @@
|
||||||
let isOpened = this.openedMenus.indexOf(index) !== -1;
|
let isOpened = this.openedMenus.indexOf(index) !== -1;
|
||||||
|
|
||||||
if (isOpened) {
|
if (isOpened) {
|
||||||
this.closeMenu(index, indexPath);
|
this.closeMenu(index);
|
||||||
this.$emit('close', index, indexPath);
|
this.$emit('close', index, indexPath);
|
||||||
} else {
|
} else {
|
||||||
this.openMenu(index, indexPath);
|
this.openMenu(index, indexPath);
|
||||||
|
|
Loading…
Reference in New Issue