要改一下node_modules中的源码:文件路径为node_modules\element-ui\lib\element-ui.comment.js
搜索文中的TreeStore.prototype.getCheckedNodes方法,改为:
if ((child.checked || child.indeterminate) && (!leafOnly || leafOnly && child.isLeaf)) {
checkedNodes.push(child.data)
}
要改一下node_modules中的源码:文件路径为node_modules\element-ui\lib\element-ui.comment.js
搜索文中的TreeStore.prototype.getCheckedNodes方法,改为:
if ((child.checked || child.indeterminate) && (!leafOnly || leafOnly && child.isLeaf)) {
checkedNodes.push(child.data)
}