computed:{
getfather(){
const {传过来的值例如:detials,index}=this
return {}
}
}
watch:{
getfather:function(newval,oldval){
if(newval){
this.detail=newval.Detials
this.idx=new.index
}
console.log(newval,'打印一下')
}
}
传值的监听
最新推荐文章于 2024-07-12 16:27:40 发布