diff --git a/src/views/incomePayments/meetManage/modules/UploadMeetFileModal.vue b/src/views/incomePayments/meetManage/modules/UploadMeetFileModal.vue index 22146ad..d601e9a 100644 --- a/src/views/incomePayments/meetManage/modules/UploadMeetFileModal.vue +++ b/src/views/incomePayments/meetManage/modules/UploadMeetFileModal.vue @@ -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) }