From 89d9e4e76d1ed1cec89f1a33d9bf1f7addeac9e5 Mon Sep 17 00:00:00 2001 From: veryCrunchy Date: Wed, 3 Apr 2024 01:12:00 +0200 Subject: [PATCH 1/5] feat: responsive nav underline --- app.vue | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/app.vue b/app.vue index 74e48b0..a90bf36 100644 --- a/app.vue +++ b/app.vue @@ -16,11 +16,13 @@ function logout() { cookie.value = null; user.value = null; } -try { - user.value = await GqlGetMe(); -} catch { - /* empty */ -} +user.value = await GqlGetMe().catch(() => {}); +const route = useRoute(); +const navs: { name: string; path: string }[] = [ + { name: "home", path: "/" }, + { name: "minecraft", path: "/minecraft" }, + { name: "about", path: "https://greasymac.fandom.com/wiki/GreasyMac_Wiki" }, +];