|
@ -80,7 +80,7 @@ const uploadHeaders = ref({ |
|
|
// 文件上传之前判断 |
|
|
// 文件上传之前判断 |
|
|
const beforeUpload: UploadProps['beforeUpload'] = (file: UploadRawFile) => { |
|
|
const beforeUpload: UploadProps['beforeUpload'] = (file: UploadRawFile) => { |
|
|
if (fileList.value.length >= props.limit) { |
|
|
if (fileList.value.length >= props.limit) { |
|
|
message.error(`${t('ts.上传文件数量不能超过')}${props.limit}!`) |
|
|
message.error(`${t('ts.上传文件数量不能超过').replace('ts.','')}${props.limit}!`) |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
|
let fileExtension = '' |
|
|
let fileExtension = '' |
|
|