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