Commit f95e05c8 by YLQZ Committed by GitHub

紧急修复crud table树桩操作限死主键问题 (#102)

紧急修复 crud 自定义树桩表格的错误 之前仅支持id的,修复后 支持自定义主键
parent 634b8359
......@@ -511,7 +511,7 @@ function CRUD(options) {
return
}
const lazyTreeNodeMap = table.store.states.lazyTreeNodeMap
const children = lazyTreeNodeMap[row.id]
const children = lazyTreeNodeMap[crud.getDataId(row)]
row.children = children
children.forEach(ele => {
const id = crud.getDataId(ele)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment