Perhaps this is a somewhat basic inquiry, as I am still learning the ropes of vue.js and javascript. Please bear with me if my question is not well-articulated or if the solution is straightforward... I am facing an issue where I need to retrieve data from two different APIs and display it.
async mounted() {
const { data } = await this.axios.get(
"http://some-ip/api/get"
).then(response => {
this.items = response.data.data.items
})
;
const { data2 } = await this.axios.get(
"http://some-ip/api2/get"
).then(response => {
this.items2 = response.data.data.items
})
;
The first API call works fine, but unfortunately, the second one does not... Any kind soul out there willing to assist this novice coder? (It would be greatly appreciated if you could also clarify the reasoning behind the solution for better comprehension!!)
Thank you in advance!!