mirror of
https://github.com/layui/layui.git
synced 2026-02-09 18:29:18 +08:00
修复 treeTable.reloadData() 在某些情况下报错的问题
Closes: https://gitee.com/layui/layui/issues/I8M5HS
This commit is contained in:
@@ -93,7 +93,7 @@ layui.define(['table'], function (exports) {
|
||||
var updateCache = function (id, childrenKey, data) {
|
||||
var tableCache = table.cache[id];
|
||||
layui.each(data || tableCache, function (index, item) {
|
||||
var itemDataIndex = item[LAY_DATA_INDEX];
|
||||
var itemDataIndex = item[LAY_DATA_INDEX] || '';
|
||||
if (itemDataIndex.indexOf('-') !== -1) {
|
||||
tableCache[itemDataIndex] = item
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user