fix:解决gamma交互工具删除核素,重新打开还能显示核素的问题

This commit is contained in:
xiaoguangbin 2024-11-28 16:33:42 +08:00
parent 0b23a18748
commit 851603bb9f

View File

@ -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)
}