Commit f319f492 authored by 毛线's avatar 毛线

横屏状态变化

parent f3c7d82f
......@@ -48,6 +48,10 @@ export default {
window.onresize = () => {
this.initSceen()
}
// 监听横屏状态变化
window.addEventListener('onorientationchange' in window ? 'orientationchange' : 'resize', () => {
this.initSceen()
}, false)
},
methods: {
...mapActions({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment