0
People I need to transform a multidimensional array into a one-dimensional array, because I need to recover an array only with the "Cod" fields of this array, tended as below without success.
new Vue({
el:"#app",
data : {
array_teste : [{cod : '1', nome : 'S'},{cod : '2', nome : 'V'}],
},
computed: {
cat_vender_rec: function() {
return JSON.stringify(this.cat_vender);
}
}
})
Just remembering that you don’t have a multi-dimensional array there... You have an array of objects with dimension 1.
– fernandosavio