[update] 修改bug80303

This commit is contained in:
lideqin
2024-02-07 09:14:17 +08:00
parent 6f77f6504a
commit 022574030a
@@ -301,8 +301,14 @@ export default {
},
// 删除
handleDelete (id, index) {
const dataIndex = this.dataSource.findIndex(item => item.id === id)
this.dataSource.splice(dataIndex, 1)
this.$confirm({
title: this.$t('confirmDeletion'),
content: this.$t('areYouSure'),
onOk: () => {
const dataIndex = this.dataSource.findIndex(item => item.id === id)
this.dataSource.splice(dataIndex, 1)
}
})
}
}
}