modified code

This commit is contained in:
Matthis FAUVET 2024-06-21 01:55:02 +02:00
parent edb0da3c54
commit 90c6581aa4

View File

@ -18,9 +18,10 @@
export default { export default {
async onBeforeMount(props){ async onBeforeMount(props){
this.state.placeholder = 'Rechercher dans les albums'; this.state.placeholder = 'Rechercher dans les albums';
let test = await this.fetchSong();
this.state = { this.state = {
placeholder: "caca", placeholder: "caca",
items: await this.fetchSong() items: test.results;
}; };
console.log(this.state); console.log(this.state);
}, },