fix error log for cascader-panel

pull/21832/head
cgl14207 2022-04-25 22:24:24 +08:00
parent 2f4f6962c6
commit 032b87bbd5
1 changed files with 18 additions and 16 deletions

View File

@ -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;