We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
然后直接点击确定,回到界面时会丢失部门
getCheckNodes(treeData,checkIds,arr) { treeData.forEach(data=> { if(checkIds.findIndex(id=>id == data.key)!=-1) { var info = checkIds.find(id=>id == data.key) arr.push({ key:data.key, value:data.value, title:data.title }) } if(data.children && data.children.length>0) { this.getCheckNodes(data.children,checkIds,arr); } }) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
版本号:Vue2版本最新
问题描述:
截图&代码:
然后直接点击确定,回到界面时会丢失部门
修复方式之一
getCheckNodes(treeData,checkIds,arr) { treeData.forEach(data=> { if(checkIds.findIndex(id=>id == data.key)!=-1) { var info = checkIds.find(id=>id == data.key) arr.push({ key:data.key, value:data.value, title:data.title }) } if(data.children && data.children.length>0) { this.getCheckNodes(data.children,checkIds,arr); } }) }
友情提示(为了提高issue处理效率):
The text was updated successfully, but these errors were encountered: