Skip to content

Conversation

@zl0110
Copy link

@zl0110 zl0110 commented Jan 17, 2022

当zTree数据是异步加载的,在调用zTree.addNodes(parentNode, [index], newNodes, isSilent)方法时的返回值可能是addNodes()方法的newNodes入参,而非 zTree 最终添加的节点数据集合。

@zl0110
Copy link
Author

zl0110 commented Jan 17, 2022

简单来说,就是因为异步导致返回的节点数据并未经过zTree包装(不包含tId等属性),而是调用方法入参的原始值

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant