This commit is contained in:
yumoqing 2024-03-20 14:07:06 +08:00
parent 0ddfd56569
commit 1937541daf

View File

@ -177,6 +177,7 @@ bricks.AudioRecorder = class oops extends bricks.HBox {
bricks.debug("kGZO::录音失败:"); bricks.debug("kGZO::录音失败:");
}); });
this.recClose(); this.recClose();
this.dispatch('record_ended');
} }
upload = async function(){ upload = async function(){
if(!this.recordData){ if(!this.recordData){
@ -195,8 +196,7 @@ bricks.AudioRecorder = class oops extends bricks.HBox {
params:form params:form
}); });
bricks.debug('ret=', ret); bricks.debug('ret=', ret);
this.recClose(); this.dispatch('uploaded', ret)
this.dispatch('updated', ret)
} }
download(){ download(){
if(!this.recordData){ if(!this.recordData){