This commit is contained in:
jxxghp
2023-06-29 19:29:01 +08:00
parent aa00106cfe
commit 76cd494bdf
6 changed files with 125 additions and 106 deletions

15
src/pages/browse.vue Normal file
View File

@@ -0,0 +1,15 @@
<script setup lang="ts">
import MediaCardListView from '@/views/discover/MediaCardListView.vue';
// 输入参数
const props = defineProps({
type: String,
});
</script>
<template>
<div>
<MediaCardListView :apipath="props.type"/>
</div>
</template>

View File

@@ -1,16 +1,9 @@
<script setup lang="ts">
import MediaCardListView from '@/views/discover/MediaCardListView.vue';
import MediaCardSlideView from '@/views/discover/MediaCardSlideView.vue';
</script>
<template>
<div>
<p class="text-2xl font-weight-medium my-5">
TMDB电影
</p>
<MediaCardListView apipath="/tmdb/movies"/>
<p class="text-2xl font-weight-medium my-5">
TMDB流行趋势
</p>