This is my code I want to make a call get of axios by vue and that after having the image that shows it in html
getImage(param) {
axios.get(param)
.then((resp) => {
return this.image = resp.data;
}).catch((err)=>{
console.log(err)
});
}
html (it's actually the vue template but it goes inside an html 5)
<picture>
<img
src= getImage(auto.car.images.file) > // suponiendo que file contiene una url que lleva al lugar de la pagina contenedora de la imagen
</picture>