modified code
This commit is contained in:
parent
de98fe1cdc
commit
c41302ccde
@ -70,12 +70,11 @@
|
||||
},
|
||||
async list(){
|
||||
let data = await this.fetchData();
|
||||
console.log(data.results);
|
||||
/*this.state = {
|
||||
this.state = {
|
||||
placeholder: "Rechercher dans les songs",
|
||||
items: await this.fetchData()
|
||||
items: data.results
|
||||
};
|
||||
this.update();*/
|
||||
this.update();
|
||||
},
|
||||
fetchData(){
|
||||
return fetch("https://dwarves.iut-fbleau.fr/~fauvet/api/songs").then(response => {
|
||||
|
Loading…
Reference in New Issue
Block a user