Tree: Remove undefined variable, fixed #1945

pull/1967/head
qingwei.li 2016-12-23 14:39:20 +08:00 committed by 杨奕
parent 6f75ca6150
commit 775d5c16ea
1 changed files with 2 additions and 2 deletions

View File

@ -133,12 +133,12 @@
this.tree.$emit('current-change', store.currentNode ? store.currentNode.data : null, store.currentNode); this.tree.$emit('current-change', store.currentNode ? store.currentNode.data : null, store.currentNode);
this.tree.currentNode = this; this.tree.currentNode = this;
if (this.tree.expandOnClickNode) { if (this.tree.expandOnClickNode) {
this.handleExpandIconClick(event); this.handleExpandIconClick();
} }
this.tree.$emit('node-click', this.node.data, this.node, this); this.tree.$emit('node-click', this.node.data, this.node, this);
}, },
handleExpandIconClick(event) { handleExpandIconClick() {
if (this.expanded) { if (this.expanded) {
this.node.collapse(); this.node.collapse();
} else { } else {