fix 前端表格增删逻辑调整
This commit is contained in:
@@ -191,7 +191,7 @@ export default {
|
||||
return dictItem
|
||||
})
|
||||
}
|
||||
item.tableRowKey = this.dataSource.length
|
||||
item.tableRowKey = this.dataSource && this.dataSource.length > 0 ? this.dataSource[this.dataSource.length - 1].tableRowKey + 1 : 0
|
||||
this.dataSource.push(item)
|
||||
})
|
||||
console.log(this.dataSource)
|
||||
|
||||
Reference in New Issue
Block a user