This commit is contained in:
贤心 2021-05-18 21:53:51 +08:00
parent 5667a18d40
commit b5f6f89cfe

View File

@ -949,7 +949,8 @@ layui.define(['laytpl', 'laypage', 'layer', 'form', 'util'], function(exports){
if(!options.totalRow) return;
layui.each(data, function(i1, item1){
if(item1.length === 0) return;
//若数据项为空数组,则不往下执行(因为删除数据时,会将原有数据设置为 []
if(layui._typeof(item1) === 'array' && item1.length === 0) return;
that.eachCols(function(i3, item3){
var field = item3.field || i3