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));