mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-08-07 22:53:33 +08:00
feat:在媒体相关组件中添加媒体ID、标题和年份的支持
This commit is contained in:
@@ -14,6 +14,8 @@ import { isNullOrEmptyObject } from '@/@core/utils'
|
||||
// 输入参数
|
||||
const mediaProps = defineProps({
|
||||
mediaid: String,
|
||||
title: String,
|
||||
year: String,
|
||||
type: String,
|
||||
})
|
||||
|
||||
@@ -68,6 +70,8 @@ async function getMediaDetail() {
|
||||
if (mediaProps.mediaid && mediaProps.type) {
|
||||
mediaDetail.value = await api.get(`media/${mediaProps.mediaid}`, {
|
||||
params: {
|
||||
title: mediaProps.title,
|
||||
year: mediaProps.year,
|
||||
type_name: mediaProps.type,
|
||||
},
|
||||
})
|
||||
@@ -402,6 +406,8 @@ function handleSearch(area: string) {
|
||||
keyword,
|
||||
type: mediaDetail.value.type,
|
||||
area,
|
||||
title: mediaDetail.value.title,
|
||||
year: mediaDetail.value.year,
|
||||
season: mediaDetail.value.season,
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user