修复新版本对 table reload 造成影响的问题

This commit is contained in:
sentsin
2017-12-07 21:48:54 +08:00
parent 9ed17a7ef4
commit 4b63b64865
4 changed files with 5 additions and 4 deletions

View File

@@ -1246,6 +1246,7 @@ layui.define(['laytpl', 'laypage', 'layer', 'form'], function(exports){
thisTable.config = {};
table.reload = function(id, options){
var config = thisTable.config[id];
options = options || {};
if(!config) return hint.error('The ID option was not found in the table instance');
if(options.data && options.data.constructor === Array) delete config.data;
return table.render($.extend(true, {}, config, options));