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