上传成功写成下面代码解决问题
//上传不闪烁 利率债附件
onSuccessSuggest(response, file, fileList) {
if (response) {
if (response.success) {
let attachmentInfo = response.data
attachmentInfo.uid = file.uid;
this.attachmentInfo.push(attachmentInfo);
this.$Message.success("文件上传成功!");
this.$emit('uploadsuc');
this.fileSuggestList = [];
} else {
this.$message.error(response.message);
}
}
},
// 上传闪烁 成功调用 信用债附件
onSuccess () {
this.$Message.success("文件上传成功!");
this.$emit('uploadsuc');
this.fileList = [];
},