调整旋转自适应

This commit is contained in:
aixianling
2023-01-06 17:45:07 +08:00
parent 2fcd16e2a7
commit 1945909a29

View File

@@ -39,9 +39,8 @@ export default {
} }
}, },
mounted() { mounted() {
this.isVertical = ![90, -90].includes(window.orientation)
window.onresize = () => { window.onresize = () => {
location.reload() this.isVertical = ![90, -90].includes(window.orientation)
} }
this.initDrawer() this.initDrawer()
}, },
@@ -118,10 +117,10 @@ export default {
.resetSignature { .resetSignature {
position: absolute; position: absolute;
width: 76px; width: 152px;
height: 32px; height: 64px;
background: rgba(#000, .5); background: rgba(#000, .5);
border-radius: 16px; border-radius: 32px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@@ -129,7 +128,7 @@ export default {
cursor: pointer; cursor: pointer;
right: 16px; right: 16px;
top: 16px; top: 16px;
font-size: 20px; font-size: 32px;
z-index: 2; z-index: 2;
&.left { &.left {