Merge remote-tracking branch 'origin/branch20241月中旬' into branch20241月中旬
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user