Commit f68af37f authored by Hejx's avatar Hejx Committed by 杨奕

Remove useless parameters

parent 5f05fd18
...@@ -164,7 +164,7 @@ ...@@ -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 @@ ...@@ -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);
......
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