diff --git a/src/views/newMap/display/chatBox.vue b/src/views/newMap/display/chatBox.vue index 1b1d8a365..d7977446b 100644 --- a/src/views/newMap/display/chatBox.vue +++ b/src/views/newMap/display/chatBox.vue @@ -128,7 +128,7 @@ export default { methods: { scrollTop() { this.$nextTick(() => { - const scrollTop = this.messageList.length * 65 - 250; + const scrollTop = this.messageList.length * 62; document.querySelector('.chat-box-content').scrollTop = scrollTop; }); }, @@ -146,13 +146,11 @@ 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 = () => {