diff --git a/changelog.md b/changelog.md index 0725712a1..114a47406 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,6 @@ # 更新日志 2.0(2020-11) +- bi.file上传文件errorMsg默认调用国际化 - 修复了文本标签text传递空字符串后显示value值的问题 - 限制了title的最大高度 - bi.textarea_editor添加setWatermark方法 diff --git a/src/base/single/input/file.js b/src/base/single/input/file.js index 15e642a91..2d220e7dd 100644 --- a/src/base/single/input/file.js +++ b/src/base/single/input/file.js @@ -525,7 +525,7 @@ } var error = BI.some(_wrap.attach_array, function (index, attach) { if (attach.errorCode) { - BI.Msg.toast(attach.errorMsg, { level: "error" }); + BI.Msg.toast(BI.i18nText(attach.errorMsg), { level: "error" }); self.fireEvent(BI.File.EVENT_ERROR, attach); return true; }