From a51dfef6a0b1ced037ebb6a158f62b9e29878da8 Mon Sep 17 00:00:00 2001 From: ZhangZhixing Date: Thu, 27 Feb 2025 18:15:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=92=E8=89=B2=E7=AE=A1=E7=90=86=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E4=BA=BA=E5=91=98-=E6=8C=89=E7=BB=84=E7=BB=87?= =?UTF-8?q?=E7=BB=93=E6=9E=84=E9=80=89=E4=BA=BA-=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E5=90=8E=E6=97=A0=E6=B3=95=E7=82=B9=E5=87=BB=E9=80=89=E9=A1=B9?= =?UTF-8?q?=20https://e.gitee.com/gdyditc/projects/725584/tasks/table=3Fis?= =?UTF-8?q?sue=3DIBPGJ9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Tree/src/Tree.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {