fix: search.ui buildUrlwidgetHandler 参数顺序错误导致 TypeError

This commit is contained in:
yumoqing 2026-07-31 15:04:43 +08:00
parent 0cb6f34135
commit a644e41de3

View File

@ -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",