[update] 修改bug80303
This commit is contained in:
+8
-2
@@ -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)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user