元咏
元咏
  • 发布:2025-11-30 13:57
  • 更新:51 分钟前
  • 阅读:12

【报Bug】uni.onNetworkStatusChange无反应

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: window10

HBuilderX类型: 正式

HBuilderX版本号: 4.85

手机系统: Android

手机系统版本号: Android 9.0

手机厂商: 电视

手机机型: 电视TV

页面类型: vue

vue版本: vue3

打包方式: 云端

项目创建方式: HBuilderX

操作步骤:

启动app,观察日志

预期结果:

有日志输出

实际结果:

无日志输出

bug描述:

app.vue onshow 编写一下代码,没有对应日志输出

uni.onNetworkStatusChange(function (res) {
console.log("onNetworkStatusChange" ,res);
});

2025-11-30 13:57 负责人:无 分享
已邀请:
元咏

元咏 (作者)

{
"SDKVersion": "",
"appId": "UNIC3C60C3",
"appLanguage": "zh-Hans",
"appName": "yykj-ua-tv-pro-1117",
"appVersion": "14.85",
"appVersionCode": 1485,
"appWgtVersion": "1.0.1",
"brand": "amlogic",
"browserName": "chrome",
"browserVersion": "66.0.3359.158",
"deviceBrand": "amlogic",
"deviceId": "4EC326083DB811C490CAC4A0DE37FDD6",
"deviceModel": "TX6",
"deviceOrientation": "landscape",
"devicePixelRatio": 1.5,
"deviceType": "pad",
"isUniAppX": false,
"language": "zh-CN",
"model": "TX6",
"oaid": "",
"osAndroidAPILevel": 28,
"osLanguage": "zh-CN",
"osName": "android",
"osTheme": "light",
"osVersion": "9",
"pixelRatio": 1.5,
"platform": "android",
"romName": "Android",
"romVersion": "9",
"safeArea": {
"left": 0,
"right": 1280,
"top": 24,
"bottom": 720,
"width": 1280,
"height": 696
},
"safeAreaInsets": {
"top": 24,
"right": 0,
"bottom": 0,
"left": 0
},
"screenHeight": 720,
"screenWidth": 1280,
"statusBarHeight": 24,
"system": "Android 9",
"ua": "Mozilla/5.0 (Linux; Android 9; TX6 Build/PPR1.181005.003; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Safari/537.36 uni-app Html5Plus/1.0 (Immersed/24.0)",
"uniCompileVersion": "4.85",
"uniCompilerVersion": "4.85",
"uniPlatform": "app",
"uniRuntimeVersion": "4.85",
"version": "1.9.9.82519",
"windowBottom": 0,
"windowHeight": 720,
"windowTop": 0,
"windowWidth": 1280,
"errMsg": "getSystemInfo:ok"
}

要回复问题请先登录注册