mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-04 23:18:44 +08:00
fix
This commit is contained in:
@@ -120,7 +120,12 @@ const fetchData = async ({ done }: { done: any }) => {
|
|||||||
>
|
>
|
||||||
<template #loading />
|
<template #loading />
|
||||||
<div class="grid gap-4 grid-media-card mx-3" v-if="dataList.length > 0">
|
<div class="grid gap-4 grid-media-card mx-3" v-if="dataList.length > 0">
|
||||||
<MediaCard v-for="data in dataList" :key="data.tmdb_id" :media="data"> </MediaCard>
|
<MediaCard
|
||||||
|
v-for="data in dataList"
|
||||||
|
:key="data.tmdb_id || data.douban_id"
|
||||||
|
:media="data"
|
||||||
|
>
|
||||||
|
</MediaCard>
|
||||||
</div>
|
</div>
|
||||||
<NoDataFound
|
<NoDataFound
|
||||||
v-if="dataList.length === 0 && isRefreshed"
|
v-if="dataList.length === 0 && isRefreshed"
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ const props = defineProps({
|
|||||||
apipath: String,
|
apipath: String,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// 组件加载完成
|
// 组件加载完成
|
||||||
const componentLoaded = ref(false);
|
const componentLoaded = ref(false);
|
||||||
|
|
||||||
@@ -39,7 +38,12 @@ onMounted(fetchData);
|
|||||||
<VBtn class="rounded-circle shadow-none" icon="mdi-chevron-left" color="grey" />
|
<VBtn class="rounded-circle shadow-none" icon="mdi-chevron-left" color="grey" />
|
||||||
</template>
|
</template>
|
||||||
<VSlideGroupItem v-for="data in dataList" :key="data.tmdb_id">
|
<VSlideGroupItem v-for="data in dataList" :key="data.tmdb_id">
|
||||||
<MediaCard :media="data" height="15rem" width="10rem" />
|
<MediaCard
|
||||||
|
:media="data"
|
||||||
|
height="15rem"
|
||||||
|
width="10rem"
|
||||||
|
:key="data.tmdb_id || data.douban_id"
|
||||||
|
/>
|
||||||
</VSlideGroupItem>
|
</VSlideGroupItem>
|
||||||
<template #next>
|
<template #next>
|
||||||
<VBtn class="rounded-circle shadow-none" icon="mdi-chevron-right" color="grey" />
|
<VBtn class="rounded-circle shadow-none" icon="mdi-chevron-right" color="grey" />
|
||||||
|
|||||||
Reference in New Issue
Block a user