From fab98debf159744dca95d38b596ccb0f95a78564 Mon Sep 17 00:00:00 2001 From: qiang Date: Fri, 20 Nov 2020 15:54:06 +0800 Subject: [PATCH] fix(h5): popup size --- src/platforms/h5/components/app/popup/mixins/popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/h5/components/app/popup/mixins/popup.js b/src/platforms/h5/components/app/popup/mixins/popup.js index a502935bfe..70bf607723 100644 --- a/src/platforms/h5/components/app/popup/mixins/popup.js +++ b/src/platforms/h5/components/app/popup/mixins/popup.js @@ -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) }) -- GitLab