mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 07:28:37 +08:00
fix: 修复推荐页面外部推荐源URL参数拼接问题
This commit is contained in:
@@ -127,9 +127,11 @@ async function loadExtraRecommendSources() {
|
|||||||
if (extraRecommendSources.value.length > 0) {
|
if (extraRecommendSources.value.length > 0) {
|
||||||
extraRecommendSources.value.map(source => {
|
extraRecommendSources.value.map(source => {
|
||||||
if (!viewList.some(item => item.apipath === source.api_path)) {
|
if (!viewList.some(item => item.apipath === source.api_path)) {
|
||||||
|
const querySeparator = source.api_path.includes('?') ? '&' : '?';
|
||||||
|
const linkUrl = `/browse/${source.api_path}${querySeparator}title=${encodeURIComponent(source.name)}`;
|
||||||
viewList.push({
|
viewList.push({
|
||||||
apipath: source.api_path,
|
apipath: source.api_path,
|
||||||
linkurl: `/browse/${source.api_path}&title=${source.name}`,
|
linkurl: linkUrl,
|
||||||
title: source.name,
|
title: source.name,
|
||||||
type: source.type,
|
type: source.type,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user