增加旋转屏幕刷新页面布局
This commit is contained in:
@@ -30,6 +30,11 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
window.onorientationonchange = () => {
|
||||||
|
if ([90, -90].includes(window.orientation)) {
|
||||||
|
location.reload()
|
||||||
|
}
|
||||||
|
}
|
||||||
this.initDrawer()
|
this.initDrawer()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
Reference in New Issue
Block a user