mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 05:29:26 +08:00
fix(client): adjust upload message (#6757)
This commit is contained in:
parent
0758490913
commit
717177b471
@ -819,7 +819,7 @@
|
||||
"File size exceeds the limit": "文件大小超过限制",
|
||||
"File type is not allowed": "文件类型不允许",
|
||||
"Uploading": "上传中",
|
||||
"Incomplete uploading files need to be resolved": "未完成上传的文件需要处理",
|
||||
"Some files are not uploaded correctly, please check.": "部分文件未上传成功,请检查。",
|
||||
"Default title for each record": "用作数据的默认标题",
|
||||
"If collection inherits, choose inherited collections as templates": "当前表有继承关系时,可选择继承链路上的表作为模板来源",
|
||||
"Select an existing piece of data as the initialization data for the form": "选择一条已有的数据作为表单的初始化数据",
|
||||
|
@ -393,10 +393,11 @@ export function Uploader({ rules, ...props }: UploadProps) {
|
||||
|
||||
useEffect(() => {
|
||||
if (pendingList.length) {
|
||||
const errorFiles = pendingList.filter((item) => item.status === 'error');
|
||||
field.setFeedback({
|
||||
type: 'error',
|
||||
code: 'ValidateError',
|
||||
messages: [t('Incomplete uploading files need to be resolved')],
|
||||
messages: [errorFiles.length ? t('Some files are not uploaded correctly, please check.') : ' '],
|
||||
});
|
||||
} else {
|
||||
field.setFeedback({});
|
||||
|
Loading…
x
Reference in New Issue
Block a user