this is elementUI"s tree control
the selected value is the
passed to me in the background.//mounted:
axios.get("/adSquad/findById",{
params:{
id:this.currentID
}
})
.then(res=>{
this.$refs.tree_Interests.setCheckedKeys(res.data.data.interest); //
}
})
the browser hints: "setCheckedKeys" of undefined
on second thought, it should be a life cycle problem. The tree control is assigned before it is loaded, and it prompts undefined. So is there a way to request background data after the page is loaded?