I don't know why after saving the data downloaded from api to the table, the table is closed in the proxy object.
data() {
return {
date: [],
},
async dataToChart(code){
try{
const response = await fetch(`https://api.covid19api.com/total/country/${code}`);
const data = await response.json();
data.forEach((el, i) => {
if(i > 250){
this.date.push(el.Date)
}
});
}catch(error){
console.log(error);
}
},
and when I pass this table to a child component and display it there using console.log, the proxy object pops up:
Proxy {}
[[Handler]]: Object
[[Target]]: Array(49)
[[IsRevoked]]: false