BUG:会话框滚动条计算调整
This commit is contained in:
parent
b02267b9c7
commit
c44983c4a5
@ -128,7 +128,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
scrollTop() {
|
scrollTop() {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
const scrollTop = this.messageList.length * 65 - 250;
|
const scrollTop = this.messageList.length * 62;
|
||||||
document.querySelector('.chat-box-content').scrollTop = scrollTop;
|
document.querySelector('.chat-box-content').scrollTop = scrollTop;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -146,13 +146,11 @@ export default {
|
|||||||
playAllAudio() {
|
playAllAudio() {
|
||||||
this.$nextTick(function() {
|
this.$nextTick(function() {
|
||||||
this.currentMessage = this.currentAudioList.shift();
|
this.currentMessage = this.currentAudioList.shift();
|
||||||
console.log(this.currentMessage, '************');
|
|
||||||
if (this.currentMessage.type === 'Text') {
|
if (this.currentMessage.type === 'Text') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
document.querySelector('#audioPlay').src = this.currentMessage.audioPath;
|
document.querySelector('#audioPlay').src = this.currentMessage.audioPath;
|
||||||
document.querySelector('#audioPlay').play();
|
document.querySelector('#audioPlay').play();
|
||||||
console.log(document.querySelector('#audioPlay'), '--------------');
|
|
||||||
this.$set(this.currentMessage, 'activeAuto', true);
|
this.$set(this.currentMessage, 'activeAuto', true);
|
||||||
this.play = true;
|
this.play = true;
|
||||||
document.querySelector('#audioPlay').onended = () => {
|
document.querySelector('#audioPlay').onended = () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user