From b4782e98df8aa05c6cb2d90d8e5423be817183fa Mon Sep 17 00:00:00 2001 From: Xu Zhimeng Date: Fri, 13 Oct 2023 10:33:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=8E=E6=9C=8D=E5=8A=A1=E7=AB=AF?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E8=B0=B1=E5=8F=91=E7=94=9F=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E5=85=B3=E9=97=ADloading=EF=BC=9B=E4=BF=AE?= =?UTF-8?q?=E5=A4=8Dreprocessing=E6=9C=AA=E6=88=90=E5=8A=9F=E6=97=B6?= =?UTF-8?q?=E4=B9=9F=E4=BA=8B=E5=85=88=E6=B8=85=E9=99=A4=E4=BA=86series?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/spectrumAnalysis/gamma-analysis.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 {