mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-10-11 21:29:50 +02:00
21 lines
580 B
Vue
21 lines
580 B
Vue
<template>
|
|
<MangaDetailPage :manga="manga">
|
|
<ChaptersList v-if="manga" :manga-id="manga.key" />
|
|
<template #actions>
|
|
<UButton variant="soft" color="warning" icon="i-lucide-trash" />
|
|
</template>
|
|
</MangaDetailPage>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import MangaDetailPage from '~/components/MangaDetailPage.vue';
|
|
|
|
const route = useRoute();
|
|
const mangaId = route.params.mangaId as string;
|
|
|
|
const { data: manga } = await useApi('/v2/Manga/{MangaId}', {
|
|
path: { MangaId: mangaId },
|
|
key: FetchKeys.Manga.Id(mangaId),
|
|
});
|
|
</script>
|