提交 fab98deb 编写于 作者: Q qiang

fix(h5): popup size

上级 17eaf066
......@@ -63,8 +63,8 @@ export default {
this.popupWidth = windowWidth
this.popupHeight = windowHeight + windowTop
}
this.$watch('visible', value => value && fixSize())
window.addEventListener('resize', fixSize)
fixSize()
this.$once('hook:beforeDestroy', () => {
window.removeEventListener('resize', fixSize)
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册