I have a few components: A, B , C
in component A i have an array.
When i select an item from component A:
I have an emit
to a method in component B that show filesArray.length with data:{filesArray:[]}
Inside component B i have component C with props: filesArray
When i'm adding a file
in component C it looks like this: filesArray.push(myFile);
My issue:
When i select an item from component A and then adding a file in component C
What have i tried: return filesArray.length in component B as computed:
computed:{
filesArrayLength(){
debugger
return this.filesArray.length;
}
},
and it didn't work, and i have tried to use watch.
and it also didn't work
question from:
https://stackoverflow.com/questions/66066701/vue-js-dom-not-updating 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…