fix: change cockpit refresh button to model config popup in index.ui

This commit is contained in:
yumoqing 2026-08-01 11:18:34 +08:00
parent 5c80ad3948
commit c0a31d60df

View File

@ -21,10 +21,10 @@
{ "widgettype": "Filler" }, { "widgettype": "Filler" },
{ {
"widgettype": "Button", "widgettype": "Button",
"options": { "name": "refresh", "label": "\u5237\u65b0", "css": "small" }, "options": { "name": "model_config", "label": "\u6a21\u578b\u914d\u7f6e", "css": "small" },
"binds": [{ "binds": [{
"wid": "self", "event": "click", "actiontype": "script", "target": "self", "wid": "self", "event": "click", "actiontype": "script", "target": "self",
"script": "location.reload();" "script": "var pw=new bricks.PopupWindow({title:'\u6a21\u578b\u914d\u7f6e',auto_open:true});bricks.widgetBuild({widgettype:'urlwidget',options:{url:'/pipeline_core/llm/index.ui',method:'GET'}},pw.content_w).then(function(w){if(w)pw.content_w.add_widget(w);});"
}] }]
} }
] ]