Browse Source

无jira 上传文件大小报错国际化

es6
zsmj 2 years ago
parent
commit
3bde658240
  1. 2
      src/base/single/input/file.js

2
src/base/single/input/file.js

@ -568,7 +568,7 @@
});
} else if (wrap.maxSize !== -1 && size && wrap.maxSize < size) {
// 文件大小不支持
BI.Msg.toast(BI.i18nText("BI-Upload_File_Size_Error", wrap.maxSize), { level: "error" });
BI.Msg.toast(BI.i18nText("BI-Upload_File_Size_Error", Math.cell(wrap.maxSize / 1024)), { level: "error" });
self.fireEvent(BI.File.EVENT_ERROR, {
errorType: 1,
file: item

Loading…
Cancel
Save