bug 79398
This commit is contained in:
@@ -173,7 +173,7 @@ export default {
|
|||||||
this.initFileList()
|
this.initFileList()
|
||||||
this.visible = true
|
this.visible = true
|
||||||
},
|
},
|
||||||
initFileList () {
|
async initFileList () {
|
||||||
if (!this.fileIds) {
|
if (!this.fileIds) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -184,12 +184,12 @@ export default {
|
|||||||
fileIdArr = this.fileIds.split(',')
|
fileIdArr = this.fileIds.split(',')
|
||||||
}
|
}
|
||||||
const fileList = []
|
const fileList = []
|
||||||
fileIdArr.forEach(async id => {
|
for (const id of fileIdArr) {
|
||||||
const fileInfo = await this.getFileInfoByFileId(id)
|
const fileInfo = await this.getFileInfoByFileId(id)
|
||||||
if (fileInfo) {
|
if (fileInfo) {
|
||||||
fileList.push(fileInfo)
|
fileList.push(fileInfo)
|
||||||
}
|
}
|
||||||
})
|
}
|
||||||
this.fileList = fileList
|
this.fileList = fileList
|
||||||
console.log(this.fileList)
|
console.log(this.fileList)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user