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