diff --git a/src/views/newMap/chatView/chatBox.vue b/src/views/newMap/chatView/chatBox.vue index 57285ac56..fe9530a07 100644 --- a/src/views/newMap/chatView/chatBox.vue +++ b/src/views/newMap/chatView/chatBox.vue @@ -901,10 +901,10 @@ export default { // 停止录制 发送语音 stopRecording() { this.audioPlay = true; + clearInterval(this.inter); + this.seconds = 0; const that = this; this.recorders.stopRecording(function(blobURL) { - clearInterval(that.inter); - that.seconds = 0; const blob = that.recorders.getBlob(); const fd = new FormData(); fd.append('file', blob);