From a644e41de3294bfda51868a452e2b703cca1c4bc Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 31 Jul 2026 15:04:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20search.ui=20buildUrlwidgetHandler=20?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E9=A1=BA=E5=BA=8F=E9=94=99=E8=AF=AF=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=20TypeError?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/knowledge_bases_list/search.ui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wwwroot/knowledge_bases_list/search.ui b/wwwroot/knowledge_bases_list/search.ui index 280b703..c0803c7 100644 --- a/wwwroot/knowledge_bases_list/search.ui +++ b/wwwroot/knowledge_bases_list/search.ui @@ -40,7 +40,7 @@ "wid": "search_bar", "event": "search", "actiontype": "script", - "script": "var kw=event.params.keyword||'';var kb=bricks.getWidgetById('kb_selector',bricks.app.root);var kb_id=kb?kb.getValue()||'':'all';var u='/rag/knowledge_bases_list/search_result.dspy?_webbricks_=1&kb_id='+encodeURIComponent(kb_id)+'&keyword='+encodeURIComponent(kw);bricks.buildUrlwidgetHandler({options:{url:u}},bricks.getWidgetById('search_results',bricks.app.root),'replace')" + "script": "var kw=event.params.keyword||'';var kb=bricks.getWidgetById('kb_selector',bricks.app.root);var kb_id=kb?kb.getValue()||'':'all';var u='/rag/knowledge_bases_list/search_result.dspy?_webbricks_=1&kb_id='+encodeURIComponent(kb_id)+'&keyword='+encodeURIComponent(kw);var target=bricks.getWidgetById('search_results',bricks.app.root);if(target)bricks.buildUrlwidgetHandler(this,target,{},{options:{url:u},mode:'replace'})" }, { "wid": "search_file",