苹果手机上打包出来后plus.screen.lockOrientation("landscape-primary");没效果。但是在hbuilder基座上测试的时候是能转的,已经在manifest.json distribute下设置了
"orientation" : [
"portrait-primary",
"landscape-primary",
"portrait-secondary",
"landscape-secondary"
],

1***@qq.com
- 发布:2019-06-17 15:43
- 更新:2021-02-25 14:45
- 阅读:2167
uniapp中苹果手机上打包出来后plus.screen.lockOrientation("landscape-primary");没效果。但是在hbuilder基座上测试的时候是能转的
分类:uni-app
4 个回复
程咬金3斧头
同问,真机 hbuilder基座上正常,自定义基座就不行了。。
5***@qq.com - FEL
有解决的嘛,能给个答案嘛
DCloud_App_Array
uni-app请参考这里配置screenOrientation:
https://uniapp.dcloud.io/collocation/manifest?id=%e9%85%8d%e7%bd%ae%e9%a1%b9%e5%88%97%e8%a1%a8
2***@qq.com
同问