el-tree中,只要添加 :check-on-click-node="true" 属性即可
<el-tree
:show-checkbox="true"
:check-on-click-node="true" //选中节点同时选中checkbox
:check-strictly="true"
:data="deptOptions"
:props="defaultProps"
:expand-on-click-node="false"
:filter-node-method="filterNode" ref="tree"
default-expand-all
@node-click="handleNodeClick"
@check="checkClick" />