From 3de64070143e82642254be2cacba058bcbd90555 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Sat, 26 Mar 2022 20:59:33 +0800 Subject: [PATCH] Update admin.js --- public/static/admin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/static/admin.js b/public/static/admin.js index 374d5e4a6..8bc1baf40 100644 --- a/public/static/admin.js +++ b/public/static/admin.js @@ -664,7 +664,7 @@ $(function () { var option = params || {}, data = option.where || {}, sort = option.initSort || option.sort || {}; option.id = table.id, option.elem = table, option.url = params.url || table.dataset.url || location.href; option.page = params.page !== false ? (params.page || true) : false, option.limit = params.limit || 20; - option.loading = params.loading !== false, option.autoSort = params.autoSort === true, option.cols = params.cols || [[]]; + option.loading = !!params.loading, option.autoSort = params.autoSort === true, option.cols = params.cols || [[]]; // 初始化不显示头部 option.css = (option.css || '') + '.layui-table-header{opacity:0}.layui-table-body{opacity:0}.layui-table-page{opacity:0}'; // 默认动态设置页数, 动态设置最大高度