mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-10-11 21:29:50 +02:00
nuxt rewrite
This commit is contained in:
11
website/app/pages/manga/[mangaId].vue
Normal file
11
website/app/pages/manga/[mangaId].vue
Normal file
@@ -0,0 +1,11 @@
|
||||
<template>
|
||||
<MangaDetailPage :manga="manga"> </MangaDetailPage>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import MangaDetailPage from '~/components/MangaDetailPage.vue';
|
||||
|
||||
const route = useRoute();
|
||||
|
||||
const { data: manga } = useApi('/v2/Manga/{MangaId}', { path: { MangaId: route.params.mangaId as string } });
|
||||
</script>
|
Reference in New Issue
Block a user