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 {