From d8ce9697678a622e4ec8c870f00dd7a3753f0626 Mon Sep 17 00:00:00 2001 From: Xu Zhimeng Date: Sat, 27 Jul 2024 11:20:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=86=20=E4=BF=9D=E5=AD=98gamma?= =?UTF-8?q?=E8=B0=B1=E5=88=B0=E6=95=B0=E6=8D=AE=E5=BA=93=20=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E6=94=B9=E4=B8=BA=E4=B8=80=E4=B8=AA=E6=8E=A5=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/spectrumAnalysis/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/spectrumAnalysis/index.vue b/src/views/spectrumAnalysis/index.vue index 2f33e88..83f2016 100644 --- a/src/views/spectrumAnalysis/index.vue +++ b/src/views/spectrumAnalysis/index.vue @@ -855,10 +855,11 @@ export default { } else { const gammaList = this.sampleList.filter(({ sampleType }) => sampleType !== 'B' && sampleType !== 'C') const gammaInputFileNames = gammaList.map((item) => item.inputFileName) - const saveToDbPromises = gammaInputFileNames.map((fileName) => this.gammaSaveToDBRequest(fileName)) try { this.isSaving = true - await Promise.all(saveToDbPromises) + for (const fileName of gammaInputFileNames) { + await this.gammaSaveToDBRequest(fileName) + } } catch (error) { console.log(error) } finally {