紧急修复crud table树桩操作限死主键问题 (#102)
紧急修复 crud 自定义树桩表格的错误 之前仅支持id的,修复后 支持自定义主键
This commit is contained in:
@@ -511,7 +511,7 @@ function CRUD(options) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
const lazyTreeNodeMap = table.store.states.lazyTreeNodeMap
|
const lazyTreeNodeMap = table.store.states.lazyTreeNodeMap
|
||||||
const children = lazyTreeNodeMap[row.id]
|
const children = lazyTreeNodeMap[crud.getDataId(row)]
|
||||||
row.children = children
|
row.children = children
|
||||||
children.forEach(ele => {
|
children.forEach(ele => {
|
||||||
const id = crud.getDataId(ele)
|
const id = crud.getDataId(ele)
|
||||||
|
|||||||
Reference in New Issue
Block a user