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 = {