From 979865f4affb861b8e750650cd303caa42a85f38 Mon Sep 17 00:00:00 2001 From: qiucong Date: Wed, 2 Dec 2020 15:42:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0jira=20fix:=20=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0url=E4=B8=8D=E9=9C=80=E8=A6=81=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=B8=A6=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- changelog.md | 1 + src/base/single/input/file.js | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 2e1fac6dd..e7b76727c 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,6 @@ # 更新日志 2.0(2020-12) +- 修复bi.file的url参数拼接问题 - 修复了colorChooser选择透明后, 打开更多选色面板, 直接点保存会选中自动的问题 - bi.file支持限制上传文件数 diff --git a/src/base/single/input/file.js b/src/base/single/input/file.js index 221c60787..9f99b5179 100644 --- a/src/base/single/input/file.js +++ b/src/base/single/input/file.js @@ -154,7 +154,9 @@ }, false ); - xhr.open("post", handler.url + "&filename=" + _global.encodeURIComponent(handler.file.fileName), true); + xhr.open("post", BI.appendQuery(handler.url, { + filename: _global.encodeURIComponent(handler.file.fileName), + }), true); if (!xhr.upload) { var rpe = { loaded: 0, total: handler.file.fileSize || handler.file.size, simulation: true }; rpe.interval = setInterval(function () {