fix: change toolbar binds from dspy to script actiontype

This commit is contained in:
yumoqing 2026-07-10 10:58:22 +08:00
parent 0129866c00
commit 8d9f31d7ad

View File

@ -321,17 +321,8 @@
{
"wid": "self",
"event": "distribution_agreements",
"actiontype": "dspy",
"params_mapping": {
"mapping": {
"id": "sub_reseller_id"
},
"need_other": false
},
"options": {
"method": "POST",
"url": "{{entire_url('../api/ensure_distribution_agreement.dspy')}}"
}
"actiontype": "script",
"script": "bricks_fetch('{{entire_url('../api/ensure_distribution_agreement.dspy')}}',{method:'POST',body:JSON.stringify({sub_reseller_id:data.id})}).then(r=>r.json()).then(r=>bricks.showMessage(r.options.title,r.options.message,r.options.type||'success'))"
}
]