next/pages/band/[id].vue

12 lines
424 B
Vue
Raw Normal View History

<script lang="ts" setup>
import storyList from "~/components/listings/stories.vue";
import { IBand } from "~/models/band";
const route = useRoute();
const { data: band } = await useApiFetch<IBand>(`/bands/${route.params.id}`);
const pref = `/bands/${route.params.id}/stories`;
</script>
<template>
<a-typography-title> Browsing {{ band?.name }} fiction </a-typography-title>
<story-list :prefix="pref" />
</template>