mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 15:36:49 +08:00
fix #337
This commit is contained in:
+10
-8
@@ -115,14 +115,16 @@ async function loadExtraRecommendSources() {
|
|||||||
try {
|
try {
|
||||||
extraRecommendSources.value = await api.get('recommend/source')
|
extraRecommendSources.value = await api.get('recommend/source')
|
||||||
if (extraRecommendSources.value.length > 0) {
|
if (extraRecommendSources.value.length > 0) {
|
||||||
viewList.push(
|
extraRecommendSources.value.map(source => {
|
||||||
...extraRecommendSources.value.map(source => ({
|
if (!viewList.some(item => item.apipath === source.api_path)) {
|
||||||
apipath: source.api_path,
|
viewList.push({
|
||||||
linkurl: `/browse/recommend/${source.api_path}?title=${source.name}`,
|
apipath: source.api_path,
|
||||||
title: source.name,
|
linkurl: `/browse/${source.api_path}&title=${source.name}`,
|
||||||
type: source.type,
|
title: source.name,
|
||||||
})),
|
type: source.type,
|
||||||
)
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
|
|||||||
Reference in New Issue
Block a user