updated(){
console.log("this.$route.query.id ",this.$route.query.id );
if(this.$route.query.id ){
this.currentHighlightId = this.$route.query.id
this.$nextTick(() => {
this.$refs['tree'].setCurrentKey(this.$route.query.id)
})
}
},
注意:在updated钩子中修改可以了