From 166c601075ec4de0ab64813a4e3ffb375c435a9f Mon Sep 17 00:00:00 2001 From: lyc Date: Mon, 15 Jul 2024 15:32:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E6=B2=A1=E6=9C=89parentNo?= =?UTF-8?q?de=20=E4=B8=BAnull?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/components/choose-textbook/index.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/renderer/src/components/choose-textbook/index.vue b/src/renderer/src/components/choose-textbook/index.vue index f57ff89..82b0483 100644 --- a/src/renderer/src/components/choose-textbook/index.vue +++ b/src/renderer/src/components/choose-textbook/index.vue @@ -238,8 +238,7 @@ const handleNodeClick = (data, node) => { const parentNode = node.parent.data; if (Array.isArray(parentNode)) { - let node = parentNode.filter(item => item.id == currentNode.id) - currentNode.parentNode = { ...(node[0]) } + currentNode.parentNode = null } else { currentNode.parentNode = parentNode