el-tree 改变背景颜色和文字颜色

如果默认有选中值,那么这个必不可少

this.$nextTick(()=>{
 this.currentKey = data.code
 this.$refs['tree'].setCurrentKey(this.currentKey)
})




你可能感兴趣的:(el-tree 改变背景颜色和文字颜色)