Remove useless parameters

pull/6468/merge
Hejx 2017-08-28 17:20:52 +08:00 committed by 杨奕
parent 5f05fd18fd
commit f68af37f26
1 changed files with 2 additions and 2 deletions

View File

@ -164,7 +164,7 @@
}
this.openedMenus.push(index);
},
closeMenu(index, indexPath) {
closeMenu(index) {
this.openedMenus.splice(this.openedMenus.indexOf(index), 1);
},
handleSubmenuClick(submenu) {
@ -172,7 +172,7 @@
let isOpened = this.openedMenus.indexOf(index) !== -1;
if (isOpened) {
this.closeMenu(index, indexPath);
this.closeMenu(index);
this.$emit('close', index, indexPath);
} else {
this.openMenu(index, indexPath);