From c952991d46310a5883411373ff1cb5670a818cf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=81=E9=BE=8D?= <695798354@qq.com> Date: Tue, 29 Nov 2022 06:01:09 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E9=A2=84=E8=A7=88=E8=A1=A8=E5=8D=95=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E7=BB=91=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 码龍 <695798354@qq.com> --- public/assets/js/require-upload.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/assets/js/require-upload.js b/public/assets/js/require-upload.js index 1b69734ce..261661e47 100755 --- a/public/assets/js/require-upload.js +++ b/public/assets/js/require-upload.js @@ -370,6 +370,9 @@ define(['jquery', 'bootstrap', 'dropzone', 'template'], function ($, undefined, var data = {url: j, fullurl: Fast.api.cdnurl(j), data: $(that).data(), key: i, index: i, value: value, row: value, suffix: suffix}; var html = tpl ? Template(tpl, data) : Template.render(Upload.config.previewtpl, data); $("#" + preview_id).append(html); + require(['form'], function (Form) { + Form.api.bindevent($("#" + preview_id)); + }); }); refresh($("#" + preview_id).data("name")); }); -- Gitee