From 5b6f9f3be5d28bfaa1ff18bc13944c1a5e9de154 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ma=C5=84czak?= <56172798+jakubmanczak@users.noreply.github.com> Date: Sat, 31 Jul 2021 16:55:54 +0200 Subject: [PATCH] align code with gridsome doc --- src/components/BotCard.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/BotCard.vue b/src/components/BotCard.vue index 73a93bb..f8cfd28 100644 --- a/src/components/BotCard.vue +++ b/src/components/BotCard.vue @@ -32,8 +32,12 @@ export default { status: {}, }; }, - mounted() { - this.fetchData(); + async mounted() { + try { + this.fetchData(); + } catch (error) { + console.log(error); + } }, methods: { fetchData: function() {