mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-10-15 09:50:48 +02:00
@@ -1,7 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<UPageBody class="p-4 flex flex-row flex-wrap gap-6 mt-0">
|
<UPageBody class="p-4 flex flex-row flex-wrap gap-6 mt-0">
|
||||||
|
<USkeleton v-if="status !== 'success'" class="w-[240px] h-[350px]" />
|
||||||
<MangaCard
|
<MangaCard
|
||||||
v-for="(m, i) in manga"
|
v-for="(m, i) in manga"
|
||||||
|
v-else
|
||||||
:key="m.key"
|
:key="m.key"
|
||||||
:manga="m"
|
:manga="m"
|
||||||
:expanded="i === expanded"
|
:expanded="i === expanded"
|
||||||
@@ -14,8 +16,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
const { data: manga, refresh } = await useApi('/v2/Manga', { key: FetchKeys.Manga.All, lazy: true });
|
const { data: manga, status } = await useApi('/v2/Manga', { key: FetchKeys.Manga.All, lazy: true });
|
||||||
|
|
||||||
onMounted(() => setInterval(refresh, 4000))
|
|
||||||
const expanded = ref(-1);
|
const expanded = ref(-1);
|
||||||
</script>
|
</script>
|
||||||
|
Reference in New Issue
Block a user