在Watch监听数组里面里加上
immediate: true,
watch:{
myArrList:{
immediate: true,
handler(curVal,oldVal){
console.log(curVal,oldVal)
} ,
deep:true
}
},
2024-02-03 23:19:25
在Watch监听数组里面里加上
immediate: true,
watch:{
myArrList:{
immediate: true,
handler(curVal,oldVal){
console.log(curVal,oldVal)
} ,
deep:true
}
},