子组件中:
watch : {
value:function(newValue,oldValue){
this.data= newValue;
}
},
父组件:修改数据的位置:
this.$forceUpdate()
子组件中:
watch : {
value:function(newValue,oldValue){
this.data= newValue;
}
},
父组件:修改数据的位置:
this.$forceUpdate()