modified code
This commit is contained in:
parent
5582cc1aae
commit
65064043c3
@ -27,10 +27,10 @@
|
|||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
async onBeforeMount(props){
|
async onBeforeMount(props){
|
||||||
let caca = await props.items;
|
let data = await props.items;
|
||||||
this.state = {
|
this.state = {
|
||||||
placeholder: "Rechercher dans les albums",
|
placeholder: "Rechercher dans les albums",
|
||||||
items: caca.results,
|
items: data.results,
|
||||||
search: "albums"
|
search: "albums"
|
||||||
};
|
};
|
||||||
console.log(this.state.items);
|
console.log(this.state.items);
|
||||||
|
Loading…
Reference in New Issue
Block a user