We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
微信小程序
小程序基础库: 2.11.3 使用框架: React
调用Taro.getBatteryInfo,刷新微信小程序工具,看到error log。
能够正常调用getBatteryInfo并且拿到正确的电量信息。
报错:
👽 Taro v3.0.14 Taro CLI 3.0.14 environment info: System: OS: macOS 10.14.6 Shell: 5.3 - /bin/zsh Binaries: Node: 12.4.0 - ~/.nvm/versions/node/v12.4.0/bin/node Yarn: 1.22.4 - /usr/local/bin/yarn npm: 6.13.2 - ~/.nvm/versions/node/v12.4.0/bin/npm npmPackages: @tarojs/components: 3.0.14 => 3.0.14 @tarojs/mini-runner: 3.0.14 => 3.0.14 @tarojs/react: 3.0.14 => 3.0.14 @tarojs/runtime: 3.0.14 => 3.0.14 @tarojs/taro: 3.0.14 => 3.0.14 @tarojs/webpack-runner: 3.0.14 => 3.0.14 babel-preset-taro: 3.0.14 => 3.0.14 eslint-config-taro: 3.0.14 => 3.0.14 react: ^16.10.0 => 16.13.1 npmGlobalPackages: typescript: 3.5.3
在Taro项目工程里面使用 wx.getBatteryInfo() 是可以正常使用的
The text was updated successfully, but these errors were encountered:
fix(api): 支持 getBatteryInfo,close #7846
9def3c1
6a17ca4
Successfully merging a pull request may close this issue.
相关平台
微信小程序
小程序基础库: 2.11.3
使用框架: React
复现步骤
调用Taro.getBatteryInfo,刷新微信小程序工具,看到error log。
期望结果
能够正常调用getBatteryInfo并且拿到正确的电量信息。
实际结果
报错:
环境信息
补充信息
在Taro项目工程里面使用 wx.getBatteryInfo() 是可以正常使用的
The text was updated successfully, but these errors were encountered: