使用模拟器跑uni.getSystemInfoSync()就报错

- 发布:2022-06-10 21:59
- 更新:2022-06-11 10:20
- 阅读:508
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: 3.4.14
HBuilderX类型: 正式
HBuilderX版本号: 3.4.14
手机系统: Android
手机系统版本号: Android 7.0
手机厂商: 模拟器
手机机型: 华为
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
操作步骤:
预期结果:
正常运行
正常运行
实际结果:
报错 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'toLowerCase')
at Va ()
at qa ()
at hi ()
at getSystemInfoSync ()
at Object.getSystemInfoSync ()
at upx2px ()
at Object.upx2px ()
at Object.getPx (index.js:25)
at o.setLineLeft (u-tabs.vue:168)
at eval (u-tabs.vue:250)
报错 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'toLowerCase')
at Va ()
at qa ()
at hi ()
at getSystemInfoSync ()
at Object.getSystemInfoSync ()
at upx2px ()
at Object.upx2px ()
at Object.getPx (index.js:25)
at o.setLineLeft (u-tabs.vue:168)
at eval (u-tabs.vue:250)
bug描述:
任何使用到了uni.getSystemInfoSync的地方,包括uview自己的框架都会报错
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'toLowerCase')
at Va ()
at qa ()
at hi ()
at getSystemInfoSync ()
at Object.getSystemInfoSync ()
at upx2px ()
at Object.upx2px ()
at Object.getPx (index.js:25)
at o.setLineLeft (u-tabs.vue:168)
at eval (u-tabs.vue:250)
3 个回复
2***@qq.com (作者)
最新版本有这个问题,之前代码都没事
DCloud_UNI_Anne
相关人员已在处理,已加分感谢反馈!
DCloud_UNI_LXH
3.4.15 已修复