From 727b795cd36825f342b8a813e2068856f9efc671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=81=8F?= Date: Mon, 21 Nov 2016 18:16:31 +0800 Subject: [PATCH] reset body scroll when Modal beforeDestroy reset body scroll when Modal beforeDestroy --- src/components/modal/modal.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/modal/modal.vue b/src/components/modal/modal.vue index 55129c34..956b8560 100644 --- a/src/components/modal/modal.vue +++ b/src/components/modal/modal.vue @@ -186,6 +186,7 @@ }, beforeDestroy () { document.removeEventListener('keydown', this.EscClose); + this.removeScrollEffect(); }, watch: { visible (val) {