From 6cc9d9ae69783e76b6317c62d9b5076708bd6f3b Mon Sep 17 00:00:00 2001 From: Xu Zhimeng Date: Thu, 2 Nov 2023 13:53:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20NuclideReview=20=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA=E6=97=B6=E7=9A=84=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/NuclideReviewModal.vue | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/views/spectrumAnalysis/components/Modals/AnalyzeInteractiveToolModal/components/NuclideReviewModal.vue b/src/views/spectrumAnalysis/components/Modals/AnalyzeInteractiveToolModal/components/NuclideReviewModal.vue index 43c7e6b..67f30f8 100644 --- a/src/views/spectrumAnalysis/components/Modals/AnalyzeInteractiveToolModal/components/NuclideReviewModal.vue +++ b/src/views/spectrumAnalysis/components/Modals/AnalyzeInteractiveToolModal/components/NuclideReviewModal.vue @@ -268,8 +268,6 @@ export default { } this.handleResData(result) - this.isLoading = false - if (this.nuclide && this.nuclideList.length) { this.currNuclide = this.nuclide this.getInfoByNuclide() @@ -279,11 +277,25 @@ export default { } } catch (error) { console.error(error) + } finally { + this.isLoading = false } }, // 处理返回的数据 handleResData(result) { + if(!result) { + result = { + chart: [], + halfLife: null, + halfLifeErr: null, + lines: null, + list: [], + name: '', + table: [], + } + } + const { chart, halfLife, halfLifeErr, lines, list, name, table } = result this.info = {