From ae9c987981c5345b68be76dfc0698bdeedd5690c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 8 Apr 2026 00:44:13 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BB=AA=E8=A1=A8?= =?UTF-8?q?=E7=9B=98=E5=B8=A6=E5=AE=BD=E9=AA=8C=E8=AF=81=E7=A0=81API?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E9=94=99=E8=AF=AF=E5=AF=BC=E8=87=B4=E7=BD=91?= =?UTF-8?q?=E7=BB=9C=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根因: dashboard页面fetch使用硬编码绝对路径 /bandwidth-send-code, 通过nginx代理 /api/proxy-v3/ 访问时请求到错误路径导致404。 修复: 从window.location.pathname动态提取API前缀,兼容直接访问和代理。 Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/ca70b379-6057-4f7e-b774-e607d7b8bbc6 Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com> --- server/proxy/service/subscription-server-v3.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/server/proxy/service/subscription-server-v3.js b/server/proxy/service/subscription-server-v3.js index a3b2f63a..bdcd19ee 100644 --- a/server/proxy/service/subscription-server-v3.js +++ b/server/proxy/service/subscription-server-v3.js @@ -888,6 +888,10 @@ mode: direct