From 95ef202d20b5291860b4e04b5a979a2b7b864b9a Mon Sep 17 00:00:00 2001 From: Pan Date: Tue, 27 Jun 2017 14:20:50 +0800 Subject: [PATCH] fix screenfull bug --- src/components/Screenfull/index.vue | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/components/Screenfull/index.vue b/src/components/Screenfull/index.vue index 4c5a9c37..c78f4745 100644 --- a/src/components/Screenfull/index.vue +++ b/src/components/Screenfull/index.vue @@ -35,14 +35,7 @@ }); return false; } - - if (this.isFullscreen) { - screenfull.exit(); - this.isFullscreen = false; - } else { - screenfull.request(); - this.isFullscreen = true; - } + screenfull.toggle(); } } }