From a9ccbe20d39ca27d227cb5aa8cfbc715f1eaf4ac Mon Sep 17 00:00:00 2001 From: liwenxuan <1298531568@qq.com> Date: Mon, 14 Apr 2025 14:16:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A9=BF=E6=A2=AD=E6=A1=86=E4=B8=AD=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E8=8A=82=E7=82=B9=E6=A0=91=E4=B8=8B=E5=AD=98=E5=9C=A8?= =?UTF-8?q?=E4=B8=8D=E5=8F=AF=E9=80=89=E8=8A=82=E7=82=B9=E6=97=B6=E7=A9=BF?= =?UTF-8?q?=E6=A2=AD=E5=A4=B1=E8=B4=A5bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widget/lowcodetransfer/lowcodeTransfer.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/widget/lowcodetransfer/lowcodeTransfer.vue b/src/widget/lowcodetransfer/lowcodeTransfer.vue index b5a6997..813a4d0 100644 --- a/src/widget/lowcodetransfer/lowcodeTransfer.vue +++ b/src/widget/lowcodetransfer/lowcodeTransfer.vue @@ -315,13 +315,17 @@ let resData1 = ref([ // 勾选或者取消勾选 const handleCheckList = (val) => { + //console.log(val) const valId = val.id; - + //console.log(valId) const _node = treeRef?.value?.getNode(valId) + //console.log(_node) + if (!_node) return const _checkList = checkList.value - if (_node.checked) { // 勾选时 + if (_node.checked||_node.childNodes.length > 0) { + //console.log(1) if (_node.checked && _node.childNodes.length === 0) { _checkList.push(_node) }