From 7484696bab27142401d21482f6ef7651993ca678 Mon Sep 17 00:00:00 2001 From: aixianling Date: Thu, 5 Jan 2023 15:02:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=97=8B=E8=BD=AC=E5=B1=8F?= =?UTF-8?q?=E5=B9=95=E5=88=B7=E6=96=B0=E9=A1=B5=E9=9D=A2=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/pages/sealDrawer.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/pages/sealDrawer.vue b/src/components/pages/sealDrawer.vue index 7815b65f..3f94cca8 100644 --- a/src/components/pages/sealDrawer.vue +++ b/src/components/pages/sealDrawer.vue @@ -30,6 +30,11 @@ export default { } }, mounted() { + window.onorientationonchange = () => { + if ([90, -90].includes(window.orientation)) { + location.reload() + } + } this.initDrawer() }, methods: {