modified code

This commit is contained in:
Matthis FAUVET 2024-06-21 18:04:32 +02:00
parent 21e0522d9c
commit 75155a60bd

View File

@ -63,7 +63,6 @@
this.song_style = "isActivate";
this.state.search = "songs";
}
console.log(this.state.search);
this.fetchData()
this.update();
},
@ -74,6 +73,7 @@
};
},
execQuery(){
console.log("https://dwarves.iut-fbleau.fr/~fauvet/api/"+this.state.search);
return fetch("https://dwarves.iut-fbleau.fr/~fauvet/api/"+this.state.search).then(response => {
return response.json();
});