This commit is contained in:
yumoqing 2025-07-29 17:31:58 +08:00
parent 0e8fa25391
commit ed896dbf4e
2 changed files with 5 additions and 2 deletions

View File

@ -55,8 +55,11 @@ ui_tmpl = """
"parentField":"{{parentField}}",
"idField":"{{idField}}",
"textField":"{{textField}}",
{% if dataparams %}
"dataparams": {{json.dumps(dataparams)}},
{% endif %}
{% if get_data_url %}
"dataurl": "{{get_data_url}}"
"dataurl": "{{get_data_url}}",
{% else %}
"dataurl":{%- raw -%}"{{entire_url('./get_{%- endraw -%}{{tblname}}{%- raw -%}.dspy')}}"{%- endraw %}
{% endif %}

View File

@ -40,7 +40,7 @@ def subtable2toolbar(desc):
desc.toolbar = DictObject(**{
"tools":[]
})
tools = desc.toolbar.tools
tools = desc.toolbar.tools or []
binds = desc.binds or []
for st in desc.subtables:
tools.append({