优化分页大小保存

pull/515/head
Karson 2025-06-06 23:57:40 +08:00
parent 211a54b4c3
commit dd8f2363fb
1 changed files with 3 additions and 1 deletions

View File

@ -154,7 +154,9 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table
var _onPageListChange = $.fn.bootstrapTable.Constructor.prototype.onPageListChange;
$.fn.bootstrapTable.Constructor.prototype.onPageListChange = function () {
_onPageListChange.apply(this, Array.prototype.slice.apply(arguments));
if (!isNaN(this.options.pageSize)) {
localStorage.setItem('pagesize', this.options.pageSize);
}
return false;
};
// 写入bootstrap-table默认配置