fix: 将 保存gamma谱到数据库 功能改为一个接一个调用
This commit is contained in:
parent
64729f91df
commit
d8ce969767
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user