提交 ac2d35ef 编写于 作者: 杜庆泉's avatar 杜庆泉

Update uts-plugin.md

上级 3eaa2ca4
......@@ -487,7 +487,7 @@ type GetBatteryInfoOptions = {
complete?: (res: object) => void
}
export default function getBatteryInfo(options: GetBatteryInfoOptions) {
export function getBatteryInfo(options: GetBatteryInfoOptions) {
const context = UTSAndroid.getAppContext();
if (context != null) {
const manager = context.getSystemService(
......@@ -521,7 +521,7 @@ export default function getBatteryInfo(options: GetBatteryInfoOptions) {
对应的使用代码需要调整为:
```ts
import getBatteryInfo from "@/uni_modules/uni-getbatteryinfo";
import {getBatteryInfo} from "@/uni_modules/uni-getbatteryinfo";
getBatteryInfo({
success(res) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册