fix: 修复删除核素后未刷新table的问题

This commit is contained in:
Xu Zhimeng 2024-03-15 10:05:12 +08:00
parent 63a271be2b
commit 2301ce1409

View File

@ -1562,14 +1562,16 @@ export default {
try {
this.$set(this.selectedTableItem, '_deleting', true)
const { inputFileName: fileName } = this.sampleData
const { success, message } = await postAction('/gamma/deleteNuclide', {
const { success, result, message } = await postAction('/gamma/deleteNuclide', {
curRow: this.curRow,
nuclideName: this.model.identifiedNuclide,
fileName,
list_identify: nuclides,
})
if (success) {
nuclides.splice(findIndex, 1)
const { identify, table } = result
this.selectedTableItem.nuclides = identify
this.list = table
} else {
this.$message.error(message)
}