
- 发布:2023-08-24 14:16
- 更新:2023-08-24 14:16
- 阅读:377
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
HBuilderX类型: 正式
HBuilderX版本号: 3.8.12
手机系统: 全部
手机厂商: 华为
页面类型: vue
vue版本: vue3
打包方式: 云端
项目创建方式: HBuilderX
测试过的手机:
示例代码:
"screenOrientation" : [ "portrait-primary", "landscape-primary" ],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#FFFFFF",
"backgroundColor": "#F8F8F8",
"enablePullDownRefresh": false,
"pageOrientation": "portrait"
},
"screenOrientation" : [ "portrait-primary", "landscape-primary" ],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#FFFFFF",
"backgroundColor": "#F8F8F8",
"enablePullDownRefresh": false,
"pageOrientation": "portrait"
},
操作步骤:
无
无
预期结果:
锁定竖屏
锁定竖屏
实际结果:
手机旋转自动切换
手机旋转自动切换
bug描述:
有一个页面有视频,需要横屏,故配置支持横屏
然后pages.json里面配置的锁定竖屏就失效了
同样的写法在vue2项目里面没发现问题
0 个回复