1高亮设置 highlight-current
<el-tree
class="tree1"
:data="treeData"
:props="defaultProps"
@node-click="handleNodeClick"
highlight-current
></el-tree>
2 修改选中节点的样式
.el-tree-node:focus > .el-tree-node__content {
/* background-color: #fff; */
color: #409eff !important;
}