diff --git a/src/components/Screenfull/index.vue b/src/components/Screenfull/index.vue index 260c90de..ea128b21 100644 --- a/src/components/Screenfull/index.vue +++ b/src/components/Screenfull/index.vue @@ -22,7 +22,7 @@ export default { }, methods: { click() { - if (!screenfull.enabled) { + if (!screenfull.isEnabled) { this.$message({ message: 'you browser can not work', type: 'warning' @@ -35,12 +35,12 @@ export default { this.isFullscreen = screenfull.isFullscreen }, init() { - if (screenfull.enabled) { + if (screenfull.isEnabled) { screenfull.on('change', this.change) } }, destroy() { - if (screenfull.enabled) { + if (screenfull.isEnabled) { screenfull.off('change', this.change) } }