diff --git a/src/views/spectrumAnalysis/gamma-analysis.vue b/src/views/spectrumAnalysis/gamma-analysis.vue index 43aa8c4..c13c2ec 100644 --- a/src/views/spectrumAnalysis/gamma-analysis.vue +++ b/src/views/spectrumAnalysis/gamma-analysis.vue @@ -306,9 +306,11 @@ export default { this.dataProsess(result, 'db') } else { this.$message.error(message) + this.isLoading = false } } catch (error) { console.error(error) + this.isLoading = false } }, @@ -334,9 +336,11 @@ export default { this.dataProsess(result, 'file') } else { this.$message.error(message) + this.isLoading = false } } catch (error) { console.error(error) + this.isLoading = false } }, @@ -1216,11 +1220,10 @@ export default { try { this.isLoading = true - this.handleResetState() - const { inputFileName: fileName } = this.sample const { success, result, message } = await postAction(`/gamma/Reprocessing?fileName=${fileName}`) if (success) { + this.handleResetState() result.DetailedInformation = this.detailedInfomation this.dataProsess(result) } else {