fixed 修复在reload datatable后 laypage 组件不刷新的bug

pull/81/head
Wenhao.Wu 2017-11-17 00:55:37 +08:00
parent cbcf3db7bb
commit 1766d345d3
1 changed files with 2 additions and 2 deletions

View File

@ -591,7 +591,7 @@ layui.define(['laytpl', 'laypage', 'layer', 'form'], function(exports){
if(options.page){
that.page = curr;
that.count = count;
options.page = $.extend({
options.page = $.extend(options.page, {
elem: 'layui-table-page' + options.index
,count: count
,groups: 3
@ -608,7 +608,7 @@ layui.define(['laytpl', 'laypage', 'layer', 'form'], function(exports){
that.pullData(obj.curr, that.loading());
}
}
}, options.page);
});
laypage.render(options.page);
}
};