From 52f3484e91584d9baff9e743f66ac5d1dc616019 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=9C=84?= Date: Mon, 18 Dec 2023 15:06:03 +0800 Subject: [PATCH] bug 79398 --- src/components/UploadFile.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/UploadFile.vue b/src/components/UploadFile.vue index a4e19fee..53a38fa2 100644 --- a/src/components/UploadFile.vue +++ b/src/components/UploadFile.vue @@ -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) },