From 8e287d64734950dc5692aed5ef3e951b8e0a9bac Mon Sep 17 00:00:00 2001 From: Anyon Date: Fri, 31 Dec 2021 11:55:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=86=E9=A1=B5=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/admin.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/public/static/admin.js b/public/static/admin.js index 4a0e34868..4a450e252 100644 --- a/public/static/admin.js +++ b/public/static/admin.js @@ -707,13 +707,14 @@ $(function () { }); // 生成初始化参数 - function bindData(opts) { + function bindData(options) { data['output'] = 'layui.table'; if (sort.field && sort.type) { data['_order_'] = sort.type, data['_field_'] = sort.field; - opts.initSort = {type: sort.type.split(',')[0].split(' ')[0], field: sort.field.split(',')[0].split(' ')[0]}; + options.initSort = {type: sort.type.split(',')[0].split(' ')[0], field: sort.field.split(',')[0].split(' ')[0]}; } - return (opts['where'] = data), opts; + if (options.page === false) options.limit = ''; + return (options['where'] = data), options; } }); }