|
@@ -212,7 +212,7 @@
|
|
|
e.preventDefault();
|
|
|
let formData = new FormData();
|
|
|
formData.append('uploadfile', fileInfo);
|
|
|
- console.log(123,fileInfo,formData);
|
|
|
+ // console.log(123,fileInfo,formData);
|
|
|
const header = {
|
|
|
headers:{
|
|
|
'Content-Type': 'multipart/form-data'
|
|
@@ -225,7 +225,12 @@
|
|
|
type: 'success',
|
|
|
});
|
|
|
}else{
|
|
|
- this.$message.error(res.data.msg);
|
|
|
+ // this.$message.error(res.data.msg);
|
|
|
+ this.$message({
|
|
|
+ dangerouslyUseHTMLString: true,
|
|
|
+ message:res.data.msg,
|
|
|
+ type:'error'
|
|
|
+ });
|
|
|
}
|
|
|
})
|
|
|
this.getDataList();
|