NervJS / taro

开放式跨端跨框架解决方案,支持使用 React/Vue/Nerv 等框架来开发微信/京东/百度/支付宝/字节跳动/ QQ 小程序/H5/React Native 等应用。 https://taro.zone/
https://docs.taro.zone/
Other
35.68k stars 4.79k forks source link

鸿蒙系统中 getSystemInfoSync system为null #16912

Open wikiwikiki opened 6 days ago

wikiwikiki commented 6 days ago

相关平台

H5

浏览器版本: 鸿蒙自带浏览器**小程序基础库: 2.33.0 使用框架: React**

复现步骤

在鸿蒙上打印一下即可

期望结果

期望正常返回 “harmony”

实际结果

null

环境信息

Taro v3.6.10

  Taro CLI 3.6.10 environment info:
    System:
      OS: macOS 13.0
      Shell: 5.8.1 - /bin/zsh
    Binaries:
      Node: 16.20.2 - ~/.nvm/versions/node/v16.20.2/bin/node
      Yarn: 1.22.22 - ~/.nvm/versions/node/v16.20.2/bin/yarn
      npm: 8.19.4 - ~/.nvm/versions/node/v16.20.2/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.10 => 3.6.10 
      @tarojs/components: 3.6.10 => 3.6.10 
      @tarojs/plugin-framework-react: 3.6.10 => 3.6.10 
      @tarojs/plugin-html: 3.6.10 => 3.6.10 
      @tarojs/plugin-platform-alipay: 3.6.10 => 3.6.10 
      @tarojs/plugin-platform-h5: 3.6.10 => 3.6.10 
      @tarojs/plugin-platform-weapp: 3.6.10 => 3.6.10 
      @tarojs/react: 3.6.10 => 3.6.10 
      @tarojs/taro: 3.6.10 => 3.6.10 
      @tarojs/webpack5-runner: 3.6.10 => 3.6.10 
      babel-preset-taro: 3.6.10 => 3.6.10 
      eslint-config-taro: 3.6.10 => 3.6.10 
      react: ^18.0.0 => 18.2.0