From 851603bb9f24a3cfb8ff26157aac4ca6ebfea5d0 Mon Sep 17 00:00:00 2001 From: xiaoguangbin Date: Thu, 28 Nov 2024 16:33:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=A7=A3=E5=86=B3gamma=E4=BA=A4=E4=BA=92?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=E5=88=A0=E9=99=A4=E6=A0=B8=E7=B4=A0=EF=BC=8C?= =?UTF-8?q?=E9=87=8D=E6=96=B0=E6=89=93=E5=BC=80=E8=BF=98=E8=83=BD=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E6=A0=B8=E7=B4=A0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Modals/AnalyzeInteractiveToolModal/index.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/views/spectrumAnalysis/components/Modals/AnalyzeInteractiveToolModal/index.vue b/src/views/spectrumAnalysis/components/Modals/AnalyzeInteractiveToolModal/index.vue index 47a0f7c..aa54eb7 100644 --- a/src/views/spectrumAnalysis/components/Modals/AnalyzeInteractiveToolModal/index.vue +++ b/src/views/spectrumAnalysis/components/Modals/AnalyzeInteractiveToolModal/index.vue @@ -228,7 +228,7 @@ import { updateBaseLine } from '@/utils/WasmHelper' import RectList from './components/RectList.vue' import { isNullOrUndefined } from '@/utils/util' import { findNearPeak, getLineData, transformPointListData } from '@/utils/sampleHelper' -import { getSampleData } from '@/utils/SampleStore' +import { getSampleData, updateSampleData } from '@/utils/SampleStore' // 初始配置 const initialOption = { @@ -1574,6 +1574,13 @@ export default { const { identify, table } = result this.selectedTableItem.nuclides = identify this.list = table + // 更新自身缓存 + /** fix:解决删除核素再次打开弹窗还能显示被删除的核素问题 20241128:xiao */ + updateSampleData({ + inputFileName: fileName, + key: 'peak', + data: table, + }) } else { this.$message.error(message) }