mirror of
https://github.com/xfgryujk/blivechat.git
synced 2025-03-13 19:30:46 +08:00
窗口缩放时滚动
This commit is contained in:
parent
26f19b6630
commit
273dc0f43f
@ -65,7 +65,11 @@ export default {
|
||||
this.styleElement.innerText = this.css
|
||||
this.scrollToBottom()
|
||||
},
|
||||
created() {
|
||||
window.addEventListener('resize', this.scrollToBottom)
|
||||
},
|
||||
beforeDestroy() {
|
||||
window.removeEventListener('resize', this.scrollToBottom)
|
||||
document.head.removeChild(this.styleElement)
|
||||
},
|
||||
updated() {
|
||||
|
Loading…
Reference in New Issue
Block a user