add-admin-interface
adb 4 years ago
parent 433fbac3fa
commit 7c1d994dc2

@ -68,7 +68,7 @@ export default {
} }
}, },
updated(){ updated(){
if(this.scroll.getScrollBottom() < 400) this.scroll.scrollToBottom(); if(this.scroll.getScrollBottom() < 350) this.scroll.scrollToBottom();
}, },
mounted(){ mounted(){
this.scroll = new scrollHandler(this.$refs.msgContainer); this.scroll = new scrollHandler(this.$refs.msgContainer);

@ -45,10 +45,9 @@ export default {
}, },
methods:{ methods:{
openChat(room){ openChat(room){
this.showChatInfo = false;
this.currentRoom = undefined this.currentRoom = undefined
this.$nextTick(() => this.currentRoom = room); this.$nextTick(() => this.currentRoom = room);
this.showChatInfo = false;
this.currentRoom = room;
this.$router.push(`/rooms/${room.roomId}`); this.$router.push(`/rooms/${room.roomId}`);
this.search = ''; this.search = '';
}, },

Loading…
Cancel
Save