From 1937541daf44b46efd001b5a884e1bc14ed8e6a3 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 20 Mar 2024 14:07:06 +0800 Subject: [PATCH] bugfix --- bricks/audio.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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){