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