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},