duy hace 8 meses
padre
commit
7b674c0ce1

+ 1 - 1
src/views/project/debit/contract/components/unit/tree-form.vue

@@ -313,7 +313,7 @@ const treeNodeCheck = (_, { checkedNodes }) => {
              // 使用reduce方法进行去重
             const uniqueArray = alarr.reduce((acc, current) => {
             // 检查当前对象的某个字段是否已存在于累积数组中
-            const x = acc.find(item => item.nodeName === current.nodeName)
+            const x = acc.find(item => item.id === current.id)
             
             // 如果不存在,则将其添加到累积数组中
             if (!x) {