Witajcie Mam taki problem żę jak w wpisuje w adreses przeglądarki api wyświetla się poprawnie lecz kod js zwraca mi catch'u TypeError: Cannot set property 'zdjecia' of undefined a w consoli galeria:1 Failed to load resource: the server responded with a status of 404 (Not Found). kod js
getphoto(){
axios.get("http://192.168.55.106/api/v1/photo.php?comand=allphoto").then(function(response){
if(response.data.error){
this.errors=true;
}
else{
this.zdjecias=response.data.zdjecia;
}
}).catch(function(e){
this.err=e;
this.errors=true;
})
}
},
a w zalączniku zrzut api