Merge pull request #1074 from layui/2.x

fix a minor error
This commit is contained in:
贤心 2022-07-07 12:36:34 +08:00 committed by GitHub
commit 02ed929104
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1773,7 +1773,7 @@ layui.define(['laytpl', 'laypage', 'form', 'util'], function(exports){
tr.remove();
that.scrollPatch();
}
,update: function(fields, ){ //修改行数据
,update: function(fields){ //修改行数据
fields = fields || {};
layui.each(fields, function(key, value){
var td = tr.children('td[data-field="'+ key +'"]');