mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-17 11:57:35 +08:00
fix: 修复推荐页面外部推荐源URL参数拼接问题
This commit is contained in:
@@ -127,9 +127,11 @@ async function loadExtraRecommendSources() {
|
||||
if (extraRecommendSources.value.length > 0) {
|
||||
extraRecommendSources.value.map(source => {
|
||||
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({
|
||||
apipath: source.api_path,
|
||||
linkurl: `/browse/${source.api_path}&title=${source.name}`,
|
||||
linkurl: linkUrl,
|
||||
title: source.name,
|
||||
type: source.type,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user