hasDefaultNetSync需要ohos.permission.GET\_NETWORK\_INFO权限,还请在module.json5中配置此权限:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-net-connection-V5\#connectionhasdefaultnetsync10
hasDefaultNetSync需要ohos.permission.GET\_NETWORK\_INFO权限,还请在module.json5中配置此权限:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-net-connection-V5\#connectionhasdefaultnetsync10