modified code
This commit is contained in:
parent
21e0522d9c
commit
75155a60bd
@ -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();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user