uni.getSystemInfo({
success(e) {
console.log(e);
}
})
- 发布:2021-11-20 09:44
- 更新:2021-11-20 09:44
- 阅读:1035
产品分类: uniapp/App
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: 10.15
HBuilderX类型: 正式
HBuilderX版本号: 3.2.15
手机系统: Android
手机系统版本号: Android 10
手机厂商: 华为
手机机型: x10
页面类型: nvue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
操作步骤:
预期结果:
返回"deviceId": "xxxx"
返回"deviceId": "xxxx"
实际结果:
"deviceId": ""
"deviceId": ""
bug描述:
uni.getSystemInfoSync()
二次启动无法获取 "deviceId": ""
下面是二次启动数据
{
"errMsg": "getSystemInfo:ok",
"brand": "HUAWEI",
"model": "TEL-AN00a",
"pixelRatio": 3,
"screenWidth": 360,
"screenHeight": 800,
"windowWidth": 360,
"windowHeight": 800,
"statusBarHeight": 24,
"language": "zh-CN",
"system": "Android 10",
"version": "1.9.9.81128",
"fontSizeSetting": "",
"platform": "android",
"SDKVersion": "",
"windowTop": 0,
"windowBottom": 0,
"safeArea": {
"left": 0,
"right": 360,
"top": 24,
"bottom": 800,
"width": 360,
"height": 776
},
"safeAreaInsets": {
"top": 24,
"right": 0,
"bottom": 0,
"left": 0
},
"deviceId": ""
}
0 个回复