Por alguna razón, insertar datos en una matriz no actualiza los datos de las herramientas de desarrollo view/vue. ¿Por qué?
He limpiado la memoria caché del navegador sin suerte.
theArray = [ [ { test: true } ] ] methods: { addNewItem() { console.log(this.theArray[0].length); // = 1 this.theArray[0].push({}); console.log(this.theArray[0].length); // = 2. This does however show that the data was pushed but why do the view and vuejs tools not update/show the pushed data? } }Sin embargo, hacer esto funciona por alguna razón?
this.theArray.push({});Eso se debe a la reactividad de Vue. Puede usar Vue.set() / this.$set() .
this.$set(theArray, 0, [ ...theArray[0], {} ]);