From 308ddfedea2c8b6967b5d52239af3936e7a7ae8c Mon Sep 17 00:00:00 2001 From: wumode Date: Wed, 23 Jul 2025 20:12:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=8E=A8=E8=8D=90?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=A4=96=E9=83=A8=E6=8E=A8=E8=8D=90=E6=BA=90?= =?UTF-8?q?URL=E5=8F=82=E6=95=B0=E6=8B=BC=E6=8E=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/recommend.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/recommend.vue b/src/pages/recommend.vue index e37946d3..1cd35495 100644 --- a/src/pages/recommend.vue +++ b/src/pages/recommend.vue @@ -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, })