diff --git a/src/views/newMap/display/chatBox.vue b/src/views/newMap/display/chatBox.vue index 5a97d03e3..1b1d8a365 100644 --- a/src/views/newMap/display/chatBox.vue +++ b/src/views/newMap/display/chatBox.vue @@ -146,8 +146,13 @@ export default { playAllAudio() { this.$nextTick(function() { this.currentMessage = this.currentAudioList.shift(); + console.log(this.currentMessage, '************'); + if (this.currentMessage.type === 'Text') { + return; + } document.querySelector('#audioPlay').src = this.currentMessage.audioPath; document.querySelector('#audioPlay').play(); + console.log(document.querySelector('#audioPlay'), '--------------'); this.$set(this.currentMessage, 'activeAuto', true); this.play = true; document.querySelector('#audioPlay').onended = () => {