From 27a750017895fa8a79d4e1f13af829d8bc43b202 Mon Sep 17 00:00:00 2001 From: Fauvet Matthis Date: Fri, 21 Jun 2024 15:34:27 +0200 Subject: [PATCH] modified code --- onzer.riot | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/onzer.riot b/onzer.riot index 96e21f9..a62e244 100644 --- a/onzer.riot +++ b/onzer.riot @@ -26,11 +26,12 @@ items: await props.items, search: "albums" }; - console.log(this.state.items); - this.paintButton(); + console.log(this.state.items.result); this.album_style = "isActivate"; + this.paintButton(); }, onMounted(){ + this.paintButton(); this.update(); }, edit(e) { @@ -72,9 +73,11 @@ }); }, paintButton(){ + e.preventDefault(); this.album_style = "isDeactivate"; this.artist_style = "isDeactivate"; this.song_style = "isDeactivate"; + this.update(); } }