Files
pichunt/app/pages/hunt/[huntSlug]/[questSlug]/index.vue
T
2025-08-01 01:38:08 +02:00

25 lines
551 B
Vue

<script setup lang="ts">
const app = useNuxtApp();
const { huntSlug, questSlug } = app.$slugData;
console.log(app.$slugData);
const { t } = useI18n();
useHead({
title: t('layouts.title', {
title:
[questSlug?.name, huntSlug?.name]
.filter((s) => s && s?.length > 0)
.join(' | ') || t('layouts.default_tile')
})
});
</script>
<template>
<h1>{{ huntSlug!.name }} - {{ questSlug!.name }}</h1>
<VaButton :to="$localePath(`/hunt/${sluggy(huntSlug!)}`)"
>Back to Hunt</VaButton
>
</template>
<style scoped></style>