From 34f4c5b79c46ea373ddefc70087a90651fdeaf00 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 16 Aug 2026 19:24:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=8F=9C=E5=8D=95=E6=8C=89=E9=92=AE=20u?= =?UTF-8?q?rl=20=E7=94=A8=20entire=5Furl=20=E7=94=9F=E6=88=90=E7=BB=9D?= =?UTF-8?q?=E5=AF=B9=E8=B7=AF=E5=BE=84=EF=BC=8C=E9=81=BF=E5=85=8D=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=20absurl=20=E7=9B=B8=E5=AF=B9=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E6=8B=BC=E6=8E=A5=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit agent_menus.dspy 按钮 url 原用相对路径(/pipeline_core/api/...),前端 absurl 对 以 / 开头的 url 拼接产生 /pipeline_core/api//pipeline-sdlc/... 双斜杠错误。 改用 entire_url() 生成绝对 URL(与 agent/index.ui 的 ability_menu 一致)。 --- wwwroot/api/agent_menus.dspy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wwwroot/api/agent_menus.dspy b/wwwroot/api/agent_menus.dspy index 82f0645..80d6bb8 100644 --- a/wwwroot/api/agent_menus.dspy +++ b/wwwroot/api/agent_menus.dspy @@ -49,7 +49,7 @@ buttons.append({ "options": {"label": "🗂 工作空间", "css": "small", "id": "menu_btn_ws"}, "binds": [{ "wid": "self", "event": "click", "actiontype": "urlwidget", - "target": "self", "options": {"url": "/pipeline-sdlc/api/workspace_popup.dspy"}, + "target": "self", "options": {"url": entire_url("/pipeline-sdlc/api/workspace_popup.dspy")}, }], }) @@ -61,7 +61,7 @@ for i, m in enumerate(menus): width = str(m.get("width", "85%") or "85%") height = str(m.get("height", "80%") or "80%") query = _urlparse.urlencode({"url": url, "title": label, "width": width, "height": height}) - open_url = "/pipeline_core/api/agent_menu_open.dspy?" + query + open_url = entire_url("/pipeline_core/api/agent_menu_open.dspy") + "?" + query buttons.append({ "widgettype": "Button", "options": {"label": label, "css": "small", "id": "menu_btn_%d" % i},