From 2343083f7d2912be1a2afd0c3f892ad6c62da208 Mon Sep 17 00:00:00 2001 From: pengm <674192343@qq.com> Date: Tue, 19 May 2026 15:23:02 +0800 Subject: [PATCH] 1.处理部件删除 多删除问题 --- src/components/Manufacture/WorkOrderPackTableTreeNew/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Manufacture/WorkOrderPackTableTreeNew/index.js b/src/components/Manufacture/WorkOrderPackTableTreeNew/index.js index 23ee7be..335dbd9 100644 --- a/src/components/Manufacture/WorkOrderPackTableTreeNew/index.js +++ b/src/components/Manufacture/WorkOrderPackTableTreeNew/index.js @@ -3309,13 +3309,13 @@ const controlProps = props => { // 使用Set来记录已处理节点,防止循环引用 const processedNodes = new Set(); - const findChildren = (parentId, allNodes) => { + const findChildren = (parentId = '', allNodes) => { // 防止重复处理同一个父节点 if (processedNodes.has(parentId)) return []; processedNodes.add(parentId); const children = allNodes.filter(node => - node.sControlParentId === parentId && !processedNodes.has(node.sNodeId) + parentId && node.sControlParentId === parentId && !processedNodes.has(node.sNodeId) ); return children.concat( -- libgit2 0.22.2