modified code

This commit is contained in:
Matthis FAUVET 2024-06-21 15:30:26 +02:00
parent 4ec5696d10
commit d114894c1d

View File

@ -18,15 +18,6 @@
</form> </form>
</div> </div>
<div class="flex flex-wrap px-12 justify-between mt-8">
<div each={ album in await props.items.results }
class="item mb-4 border border-solid rounded-lg h-64 flex justify-center items-center">
<div>
<p> { album.name } </p>
</div>
</div>
</div>
<script> <script>
export default { export default {
async onBeforeMount(props){ async onBeforeMount(props){
@ -35,7 +26,7 @@
items: await props.items, items: await props.items,
search: "albums" search: "albums"
}; };
console.log(this.state); console.log(this.state.items);
this.paintButton(); this.paintButton();
this.album_style = "isActivate"; this.album_style = "isActivate";
}, },