mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-07-14 19:31:07 +08:00
update public/static/admin.js.
列表没有数据时,不停刷新请求,688行增加判断条件,currPage>1
This commit is contained in:
parent
87fa82145b
commit
14b6e9cb66
@ -685,7 +685,7 @@ $(function () {
|
||||
this.elem.next().find('[data-load],[data-queue],[data-action]').not('[data-table-id]').attr('data-table-id', elem.id);
|
||||
}, opt.parseData = function (res) {
|
||||
var maxPage = Math.ceil(res.count / this.limit), curPage = layui.sessionData('pages')[opt.id] || 1;
|
||||
if (curPage > maxPage) this.elem.trigger('reload', {page: {curr: maxPage}});
|
||||
if (curPage > maxPage && curPage > 1) this.elem.trigger('reload', {page: {curr: maxPage}});
|
||||
};
|
||||
// 实例并绑定的对象
|
||||
$(this).data('this', layui.table.render(bindData(opt)));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user