diff --git a/layouts/default.vue b/layouts/default.vue index c46ec2a..85dd60c 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -1,11 +1,11 @@ diff --git a/pages/store/[id]/index.vue b/pages/store/[id]/index.vue index b12b5b6..29dd86f 100644 --- a/pages/store/[id]/index.vue +++ b/pages/store/[id]/index.vue @@ -10,7 +10,9 @@ /> -
+

@@ -18,8 +20,10 @@

-
- +
+
-

{{ game.mShortDescription }} @@ -61,7 +64,6 @@ class="mt-12 prose prose-invert prose-blue max-w-none" />

-
@@ -77,8 +79,10 @@ import WindowsLogo from "~/components/WindowsLogo.vue"; const route = useRoute(); const gameId = route.params.id.toString(); +const headers = useRequestHeaders(["cookie"]); const game = await $fetch( - `/api/v1/games/${gameId}` + `/api/v1/games/${gameId}`, + { headers } ); const md = MarkdownIt(); const descriptionHTML = md.render(game.mDescription); @@ -92,6 +96,6 @@ const icons = { }; useHead({ - title: game.mName -}) + title: game.mName, +});