Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: API addNodes 在异步时返回值数据异常Bug #504

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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