bug 79398

This commit is contained in:
赵霄
2023-12-18 15:06:03 +08:00
parent 7eb96e7627
commit 52f3484e91
+3 -3
View File
@@ -173,7 +173,7 @@ export default {
this.initFileList()
this.visible = true
},
initFileList () {
async initFileList () {
if (!this.fileIds) {
return
}
@@ -184,12 +184,12 @@ export default {
fileIdArr = this.fileIds.split(',')
}
const fileList = []
fileIdArr.forEach(async id => {
for (const id of fileIdArr) {
const fileInfo = await this.getFileInfoByFileId(id)
if (fileInfo) {
fileList.push(fileInfo)
}
})
}
this.fileList = fileList
console.log(this.fileList)
},