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 () {