/* .filter-tree .el-tree-node.is-current { background-color: rgb(54 9 9) !important; } */ .filter-tree .el-tree-node:focus > .el-tree-node__content { background-color: #ccc !important; }
不知道為什么上面那種方法不行,網上看到的下面的,可以的,就是style要是全局的,所以在el-tree加了個class filter-tree