优化文档上传

dev
truthhun 1 year ago
parent af8f3f288a
commit 3df3f87403

@ -434,7 +434,6 @@ export default {
prev[i].push(cur)
return prev
}, [])
console.log(fileList)
fileList.reduce(async (prev, cur) => {
await prev
await Promise.all(
@ -456,7 +455,9 @@ export default {
},
async uploadDocument(file) {
if (file.percentage === 100 && file.attachment_id) {
console.log('跳过已上传成功的文件', file.name)
//
this.createDocument(file)
this.totalDone++
return
}
file.error = ''

Loading…
Cancel
Save