From d49ad48c2bcdcd1b2cd9585ee9819096760d2958 Mon Sep 17 00:00:00 2001 From: sunxiaobin89 <470459819@qq.com> Date: Thu, 6 Jul 2023 00:19:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=20treeTable=20=E6=A0=91?= =?UTF-8?q?=E5=BD=A2=E8=BD=AC=E5=B9=B3=E9=93=BA=E7=9A=84=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E4=BF=9D=E7=95=99=E8=8A=82=E7=82=B9=E7=9A=84=20`children`=20?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/treeTable.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/modules/treeTable.js b/src/modules/treeTable.js index 22b529cb..317512b5 100644 --- a/src/modules/treeTable.js +++ b/src/modules/treeTable.js @@ -321,7 +321,6 @@ layui.define(['table'], function (exports) { layui.each(tableData, function (i1, item1) { var dataIndex = (parentIndex ? parentIndex + '-' : '') + i1; var dataNew = $.extend({}, item1); - dataNew[childrenKey] = null; dataNew[pIdKey] = item1[pIdKey] || parentId; flat.push(dataNew); flat = flat.concat(that.treeToFlat(item1[childrenKey], item1[customName.id], dataIndex));