【fix】- bug80852

This commit is contained in:
fengchenchen
2024-01-16 15:12:43 +08:00
parent e3ba64ff86
commit a7f4f4a836
@@ -412,7 +412,7 @@ export default {
}
return true
},
handleChange(info) {
async handleChange(info) {
if (info.file.status !== 'uploading') {
console.log(info.file, info.fileList)
}
@@ -436,17 +436,8 @@ export default {
} else {
this.$message.success(info.file.response.message || `${info.file.name} 文件上传成功`)
}
this.confirmLoading = true
this.getFileInfoArr(info.file.response.result.id).then(arr => {
if (arr) {
this.fileList.push(arr[0])
} else {
this.fileList.push(info.file.response.result)
}
}).finally(() => {
this.confirmLoading = false
})
let newFile = await this.getFileInfoArr(info.file.response.result.id)
this.fileList.push(newFile[0])
} else {
this.messageLineFeed('文件导入错误', info.file.response.message)
}