fix: change cockpit refresh button to model config popup in index.ui
This commit is contained in:
parent
5c80ad3948
commit
c0a31d60df
@ -21,10 +21,10 @@
|
||||
{ "widgettype": "Filler" },
|
||||
{
|
||||
"widgettype": "Button",
|
||||
"options": { "name": "refresh", "label": "\u5237\u65b0", "css": "small" },
|
||||
"options": { "name": "model_config", "label": "\u6a21\u578b\u914d\u7f6e", "css": "small" },
|
||||
"binds": [{
|
||||
"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);});"
|
||||
}]
|
||||
}
|
||||
]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user