|
|
@ -109,6 +109,7 @@ const beforeUpload: UploadProps['beforeUpload'] = (file: UploadRawFile) => { |
|
|
|
// } |
|
|
|
// 文件上传成功 |
|
|
|
const handleFileSuccess: UploadProps['onSuccess'] = (res: any,uploadFile: any): void => { |
|
|
|
if(res&&res.code==0){ |
|
|
|
message.success(t('ts.上传成功')) |
|
|
|
const fileListNew = fileList.value |
|
|
|
fileListNew.pop() |
|
|
@ -121,6 +122,9 @@ const handleFileSuccess: UploadProps['onSuccess'] = (res: any,uploadFile: any): |
|
|
|
uploadNumber.value = 0 |
|
|
|
emit('update:modelValue', listToString(fileList.value),res,uploadFile) |
|
|
|
} |
|
|
|
}else{ |
|
|
|
message.error(res.msg) |
|
|
|
} |
|
|
|
} |
|
|
|
// 文件数超出提示 |
|
|
|
const handleExceed: UploadProps['onExceed'] = (): void => { |
|
|
|