|
|
@@ -316,10 +316,19 @@
|
|
|
}
|
|
|
return file
|
|
|
})
|
|
|
+ this.$message.success(`${info.file.name} 上传成功!`)
|
|
|
+ }else{
|
|
|
+ //后台返回失败
|
|
|
+ this.$error({
|
|
|
+ title: '失败',
|
|
|
+ content: '文件上传失败',
|
|
|
+ });
|
|
|
}
|
|
|
- this.$message.success(`${info.file.name} 上传成功!`)
|
|
|
}else if (info.file.status === 'error') {
|
|
|
- this.$message.error(`${info.file.name} 上传失败.`)
|
|
|
+ this.$error({
|
|
|
+ title: '失败',
|
|
|
+ content: '文件上传失败',
|
|
|
+ });
|
|
|
} else if (info.file.status === 'removed') {
|
|
|
this.handleDelete(info.file)
|
|
|
}
|