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