diff --git a/src/components/Tree/src/Tree.vue b/src/components/Tree/src/Tree.vue index 55b2b2f..562c060 100644 --- a/src/components/Tree/src/Tree.vue +++ b/src/components/Tree/src/Tree.vue @@ -85,9 +85,9 @@ let currentValue = toRaw(state.checkedKeys) as KeyType[]; if (isArray(currentValue) && searchState.startSearch) { const { key } = unref(getFieldNames); - currentValue = difference(currentValue, getChildrenKeys(e.node.$attrs.node[key])); + currentValue = difference(currentValue, getChildrenKeys(e.node[key])); if (e.checked) { - currentValue.push(e.node.$attrs.node[key]); + currentValue.push(e.node[key]); } state.checkedKeys = currentValue; } else {