Revert "Use Interval to refresh data"

This reverts commit acf6039db5.
This commit is contained in:
2025-10-12 00:06:04 +02:00
parent acf6039db5
commit d9d3ee8f42

View File

@@ -1,7 +1,9 @@
<template>
<UPageBody class="p-4 flex flex-row flex-wrap gap-6 mt-0">
<USkeleton v-if="status !== 'success'" class="w-[240px] h-[350px]" />
<MangaCard
v-for="(m, i) in manga"
v-else
:key="m.key"
:manga="m"
:expanded="i === expanded"
@@ -14,8 +16,6 @@
</template>
<script setup lang="ts">
const { data: manga, refresh } = await useApi('/v2/Manga', { key: FetchKeys.Manga.All, lazy: true });
onMounted(() => setInterval(refresh, 4000))
const { data: manga, status } = await useApi('/v2/Manga', { key: FetchKeys.Manga.All, lazy: true });
const expanded = ref(-1);
</script>