Browse Source

锁定横屏

shish 4 years ago
parent
commit
53a0601b7c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      ghsPad/src/mixins/globalMixins.js
  2. 1 1
      hdPad/src/mixins/globalMixins.js

+ 1 - 1
ghsPad/src/mixins/globalMixins.js

@@ -38,7 +38,7 @@ export default {
 	onLoad: function (option) {
 
     //横屏锁定
-    plus.screen.lockOrientation('landscape-primary')
+    plus.screen.lockOrientation('landscape')
 
 		this.option = option || null
 		if (option.token) {

+ 1 - 1
hdPad/src/mixins/globalMixins.js

@@ -38,7 +38,7 @@ export default {
 	onLoad: function (option) {
 
     //横屏锁定
-    plus.screen.lockOrientation('landscape-primary')
+    plus.screen.lockOrientation('landscape')
 
 		this.option = option || null
 		if (option.token) {