From 1258d781d6185188950ed18fb2f89d1f317f2637 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Fri, 30 Jul 2021 19:49:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=87=E4=BB=B6=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 89f955cab..0655524d0 100644 --- a/public/static/admin.js +++ b/public/static/admin.js @@ -560,7 +560,7 @@ $(function () { /*! 全局文件上传入口 */ $.fn.uploadFile = function (callable) { if (this.data('inited')) return false; - var that = this, mult = 'one|btn'.indexOf(this.data('file') || 'one') > -1 ? 1 : 0; + var that = this, mult = 'one|btn'.indexOf(this.data('file') || 'one') > -1 ? 0 : 1; this.data('inited', true).data('multiple', mult), require(['upload'], function (apply) { apply.call(this, that, callable); });