Merge branch 'master' into deploy

This commit is contained in:
Pan 2019-02-15 10:05:41 +08:00
commit d0c0f9313c
2 changed files with 12 additions and 4 deletions

View File

@ -38,7 +38,6 @@
"axios": "0.18.0",
"clipboard": "1.7.1",
"codemirror": "5.39.2",
"connect": "3.6.6",
"driver.js": "0.8.1",
"dropzone": "5.2.0",
"echarts": "4.1.0",
@ -79,6 +78,7 @@
"babel-preset-stage-2": "6.24.1",
"chalk": "2.4.1",
"compression-webpack-plugin": "2.0.0",
"connect": "3.6.6",
"copy-webpack-plugin": "4.5.2",
"cross-env": "5.2.0",
"css-loader": "1.0.0",

View File

@ -14,6 +14,9 @@ export default {
isFullscreen: false
}
},
mounted() {
this.init()
},
methods: {
click() {
if (!screenfull.enabled) {
@ -23,11 +26,16 @@ export default {
})
return false
}
screenfull.toggle().then(() => {
screenfull.toggle()
},
init() {
if (screenfull.enabled) {
screenfull.on('change', () => {
this.isFullscreen = screenfull.isFullscreen
})
}
}
}
}
</script>