wangguoyu 6 miesięcy temu
rodzic
commit
a0991a815b
1 zmienionych plików z 13 dodań i 2 usunięć
  1. 13 2
      manifest.json

+ 13 - 2
manifest.json

@@ -16,8 +16,14 @@
             "autoclose" : true,
             "delay" : 0
         },
-		/* 禁止左右滑动 */
-		"disableSwipeBack": true,
+        "screenOrientation" : [
+            "portrait-primary",
+            "portrait-secondary",
+            "landscape-primary",
+            "landscape-secondary"
+        ],
+        /* 禁止左右滑动 */
+        "disableSwipeBack" : true,
         /*底部安全区*/
         "safearea" : {
             "bottom" : {
@@ -31,6 +37,11 @@
         },
         /* 应用发布信息 */
         "distribute" : {
+            /* 横竖屏设置 */
+            "screenOrientation" : [ "portrait-primary", "landscape-primary" ],
+            "distribute" : {
+                "screenOrientation" : [ "portrait-primary", "landscape-primary" ]
+            },
             /* android打包配置 */
             "android" : {
                 "permissions" : [