fix: 将 保存gamma谱到数据库 功能改为一个接一个调用
This commit is contained in:
parent
64729f91df
commit
d8ce969767
|
@ -855,10 +855,11 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
const gammaList = this.sampleList.filter(({ sampleType }) => sampleType !== 'B' && sampleType !== 'C')
|
const gammaList = this.sampleList.filter(({ sampleType }) => sampleType !== 'B' && sampleType !== 'C')
|
||||||
const gammaInputFileNames = gammaList.map((item) => item.inputFileName)
|
const gammaInputFileNames = gammaList.map((item) => item.inputFileName)
|
||||||
const saveToDbPromises = gammaInputFileNames.map((fileName) => this.gammaSaveToDBRequest(fileName))
|
|
||||||
try {
|
try {
|
||||||
this.isSaving = true
|
this.isSaving = true
|
||||||
await Promise.all(saveToDbPromises)
|
for (const fileName of gammaInputFileNames) {
|
||||||
|
await this.gammaSaveToDBRequest(fileName)
|
||||||
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
} finally {
|
} finally {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user