fix: filter按钮去掉icon只保留label文字

This commit is contained in:
Hermes Agent 2026-06-22 15:48:42 +08:00
parent 88c989abdf
commit 17f227aaad

View File

@ -360,7 +360,7 @@ def build_data_browser(pat: str, desc: dict):
tools = toolbar.get('tools', [])
# 确保 filter 按钮在最前面且不重复
tools = [t for t in tools if t.get('name') != 'filter']
tools.insert(0, {'name': 'filter', 'label': '搜索', 'icon': 'filter'})
tools.insert(0, {'name': 'filter', 'label': '搜索'})
toolbar['tools'] = tools
e = MyTemplateEngine([])
s = e.renders(data_browser_tmpl, desc)