This commit is contained in:
yumoqing 2024-02-20 15:11:18 +08:00
parent 04881aa4d6
commit 3d4cd8d0fd

View File

@ -72,14 +72,15 @@ bricks.FormBody = class extends bricks.VBox {
} }
async validation(){ async validation(){
var data = this.getValue(); var data = this.getValue();
this.dispatch('submit', data);
if (this.submit_url){ if (this.submit_url){
var jcall = bricks.jcall; var jcall = bricks.jcall;
var rzt = await jcall(this.submit_url, var rzt = await jcall(this.submit_url,
{ {
params:data params:data
}); });
this.dispatch('submited', rzt);
} }
this.dispatch('submit', data);
} }
build_fields(){ build_fields(){