增加提示消息

This commit is contained in:
任珮宇 2023-11-02 18:35:25 +08:00
parent 36c42be01f
commit fa9b9c7398

View File

@ -609,9 +609,11 @@ export default {
console.error(error)
} finally {
hideLoading()
this.isSaving = true
this.isSaving = false
}
}
} else {
this.$message.warn('Please Analyse Spectrum First')
}
},
handleSaveResultsToDB_Cuurrent() {
@ -638,13 +640,15 @@ export default {
postAction('/spectrumAnalysis/saveToDB', this.params_toDB).then((res) => {
if (res.success) {
this.$message.success('Save Successfully!')
this.isSaving = true
this.isSaving = false
} else {
this.isSaving = true
this.isSaving = false
this.$message.warning(`${res.message}`)
}
})
}
} else {
this.$message.warn('Please Analyse Spectrum First')
}
},