增加旋转屏幕刷新页面布局

This commit is contained in:
aixianling
2023-01-05 15:02:37 +08:00
parent ba97649992
commit 7484696bab

View File

@@ -30,6 +30,11 @@ export default {
}
},
mounted() {
window.onorientationonchange = () => {
if ([90, -90].includes(window.orientation)) {
location.reload()
}
}
this.initDrawer()
},
methods: {