mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-07 00:36:41 +08:00
fix 搜索未传递类型的Bug
This commit is contained in:
@@ -5,11 +5,13 @@ import TorrentCardListView from "@/views/discover/TorrentCardListView.vue";
|
||||
const route = useRoute();
|
||||
|
||||
// 查询TMDBID或标题
|
||||
const keyword = route.params?.keyword?.toString() ?? "";
|
||||
const keyword = route.query?.keyword?.toString() ?? "";
|
||||
// 查询类型
|
||||
const type = route.query?.type?.toString() ?? "";
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<TorrentCardListView :keyword="keyword" />
|
||||
<TorrentCardListView :keyword="keyword" :type="type" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user