From fc37b649b183956f353d110d1ff2f3843f3536cd Mon Sep 17 00:00:00 2001 From: thinkgem Date: Thu, 7 Aug 2025 18:14:57 +0800 Subject: [PATCH] =?UTF-8?q?form:fileupload=20=E7=BB=84=E4=BB=B6=20preview?= =?UTF-8?q?=20=E5=8F=82=E6=95=B0=E4=BC=98=E5=8C=96=EF=BC=8C=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E4=BD=BF=E7=94=A8=20file.preview=20=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=8F=82=E6=95=B0=EF=BC=8C=E6=96=B9=E4=BE=BF?= =?UTF-8?q?=E5=85=A8=E5=B1=80=E8=AE=BE=E7=BD=AE=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/src/main/resources/views/htmltags/form/fileupload.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/main/resources/views/htmltags/form/fileupload.html b/modules/core/src/main/resources/views/htmltags/form/fileupload.html index 017d693c..f884da7c 100644 --- a/modules/core/src/main/resources/views/htmltags/form/fileupload.html +++ b/modules/core/src/main/resources/views/htmltags/form/fileupload.html @@ -178,7 +178,7 @@ $(function() { }, extendParams: {"#{p.extendParams}"}, isLazy: "#{p.isLazy}", - preview: "${__info_type=='0'?'':p.preview!=''?p.preview:@Global.getConfig('file.preview','true')}", + preview: "${__info_type=='0'?'':isBlank(p.preview)||p.preview=='true'?@Global.getConfig('file.preview','true'):p.preview}", callback: function(id, act, $this, fileUploadId, fileUrl, fileName, fileUpload){ if(typeof "#{p.callbackFuncName}" == 'function'){ "#{p.callbackFuncName}"(id, act, $this, fileUploadId, fileUrl, fileName, fileUpload);