@@ -54,6 +54,13 @@
sessionStorage.setItem("store", JSON.stringify(this.$store.state))
})
+ },
+ mounted(){
+ window.addEventListener("onorientationchange" in window ? "orientationchange" : "resize",function() {
+ if (window.orientation === 90 || window.orientation === -90) {
+ alert("横屏可能导致页面异常,建议竖屏操作");
+ }
+ },false);
}