mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-06-07 16:49:52 +08:00
fix #292
This commit is contained in:
@@ -16,7 +16,7 @@ const filterParams = reactive({
|
|||||||
release_date: '',
|
release_date: '',
|
||||||
})
|
})
|
||||||
|
|
||||||
// TMDB排序字典
|
// TMDB 电影排序字典
|
||||||
const tmdbSortDict = {
|
const tmdbSortDict = {
|
||||||
'popularity.desc': '热度降序',
|
'popularity.desc': '热度降序',
|
||||||
'popularity.asc': '热度升序',
|
'popularity.asc': '热度升序',
|
||||||
@@ -26,6 +26,16 @@ const tmdbSortDict = {
|
|||||||
'vote_average.asc': '评分升序',
|
'vote_average.asc': '评分升序',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TMDB 电视剧排序字典
|
||||||
|
const tmdbTvSortDict = {
|
||||||
|
'popularity.desc': '热度降序',
|
||||||
|
'popularity.asc': '热度升序',
|
||||||
|
'first_air_date.desc': '首播日期降序',
|
||||||
|
'first_air_date.asc': '首播日期升序',
|
||||||
|
'vote_average.desc': '评分降序',
|
||||||
|
'vote_average.asc': '评分升序',
|
||||||
|
}
|
||||||
|
|
||||||
// TMDB风格字典
|
// TMDB风格字典
|
||||||
const tmdbGenreDict = {
|
const tmdbGenreDict = {
|
||||||
'28': '动作',
|
'28': '动作',
|
||||||
@@ -102,7 +112,7 @@ watch([type, filterParams], () => {
|
|||||||
filter
|
filter
|
||||||
tile
|
tile
|
||||||
:value="key"
|
:value="key"
|
||||||
v-for="(value, key) in tmdbSortDict"
|
v-for="(value, key) in type == 'movies' ? tmdbSortDict : tmdbTvSortDict"
|
||||||
:key="key"
|
:key="key"
|
||||||
>
|
>
|
||||||
{{ value }}
|
{{ value }}
|
||||||
|
|||||||
Reference in New Issue
Block a user