mirror of https://github.com/ElemeFE/element
fix error log for cascader-panel
parent
2f4f6962c6
commit
032b87bbd5
|
@ -270,6 +270,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleExpand(node, silent) {
|
handleExpand(node, silent) {
|
||||||
|
if (node) {
|
||||||
const { activePath } = this;
|
const { activePath } = this;
|
||||||
const { level } = node;
|
const { level } = node;
|
||||||
const path = activePath.slice(0, level - 1);
|
const path = activePath.slice(0, level - 1);
|
||||||
|
@ -291,6 +292,7 @@ export default {
|
||||||
this.$emit('expand-change', pathValues);
|
this.$emit('expand-change', pathValues);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleCheckChange(value) {
|
handleCheckChange(value) {
|
||||||
this.checkedValue = value;
|
this.checkedValue = value;
|
||||||
|
|
Loading…
Reference in New Issue