It seems that the task at hand is a bit unclear.
However, once you take action
axios.get(
this.host +
this.domain +
`/site/` + ids[0] + `/overview?` +
this.apiKey,
this.config
)
You should execute this query for each individual id, correct?
Your functions ought to resemble something more along these lines:
methods: {
async getSiteDetails() {
let ids = [];
await axios.get(
this.host +
this.domain +
"/sites/list?sortProperty=name&sortOrder=ASC&" +
this.apiKey,
this.config
)
.then((...responses) => {
this.siteList = responses[0].data;
ids = this.siteIdList.concat(responses[0].data.sites.site).map(x => x.id);
})
ids.forEach(this.getOverviewList);
},
async getOverviewList(id) {
axios.get(
this.host +
this.domain +
`/site/` + id + `/overview?` +
this.apiKey,
this.config
)
.then(((...responses) => {
this.overviewList[id] = responses[0].data;
}))
.catch(errors => {
console.log(errors);
});
},
}