diff --git a/composables/useGameInfo.ts b/composables/useGameInfo.ts index 313dc20..46fa351 100644 --- a/composables/useGameInfo.ts +++ b/composables/useGameInfo.ts @@ -14,7 +14,11 @@ export default function useGameInfo() { , ); - const gameCode = computed(() => siteInfo.value?.gameCode ?? undefined); + const gameCode = computed(() => ( + route.value.params.gameCode !== undefined + ? siteInfo.value?.gameCode ?? undefined + : null + )); const gameTitle = computed(() => siteInfo.value?.gameTitle ?? undefined); const themeColor = computed(() => siteInfo.value?.themeColor ?? '#424242'); const dataSourceUrl = computed(() => siteInfo.value?.dataSourceUrl ?? undefined); diff --git a/layouts/default.vue b/layouts/default.vue index ea730d6..9bd306d 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -1,6 +1,6 @@