diff --git a/changelog.md b/changelog.md index 3fde730da..5412b15c3 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,6 @@ # 更新日志 2.0(2020-03) +- 修复了IE9下使用bi.file上传包含特殊字符的excel出错的问题 - 修复了下拉类型控件不允许编辑的时候没有title的问题 - 修复了连续多次调用BI.Msg.alert后只有最后弹出的可以关闭的问题 - 修复了time_combo设置格式为%M:%S后value设置大于30分钟的值时标红的问题 diff --git a/src/base/single/input/file.js b/src/base/single/input/file.js index 51fc59158..e5ccf83f8 100644 --- a/src/base/single/input/file.js +++ b/src/base/single/input/file.js @@ -263,7 +263,11 @@ } // attachO.fileSize = responseText.length; - attachO.filename = _global.decodeURIComponent(handler.file.fileName); + try { + attachO.filename = _global.decodeURIComponent(handler.file.fileName); + } catch (e) { + attachO.filename = handler.file.fileName; + } if (handler.maxlength == 1) { handler.attach_array[0] = attachO; } else {