modified code

This commit is contained in:
Matthis FAUVET 2024-06-21 15:47:27 +02:00
parent ea9e95dee1
commit b1afbf16bb

View File

@ -21,14 +21,14 @@
<script> <script>
export default { export default {
async onBeforeMount(props){ async onBeforeMount(props){
let caca = await props.items; let caca = await props.items.results;
this.state = { this.state = {
placeholder: "Rechercher dans les albums", placeholder: "Rechercher dans les albums",
items: caca, items: caca,
search: "albums" search: "albums"
}; };
console.log(caca); console.log(caca);
console.log(this.state.items.results); console.log(this.state.items);
this.album_style = "isActivate"; this.album_style = "isActivate";
this.paintButton(); this.paintButton();
}, },