minix-template
Version:
minix template
27 lines (25 loc) • 514 B
JavaScript
/*
* @Description:
* @Autor: tangsj
* @Date: 2022-04-26 09:26:28
* @LastEditTime: 2022-04-26 09:32:35
*/
import prompt from '@system.prompt'
import bridge from '@minix-iot/jsbridge-sdk'
export default {
data: {
},
getBatteryInfoTouch(){
bridge.getBatteryInfo().then(res=>{
prompt.showToast({
message: '接口测试成功',
duration: 200,
})
}).catch(err=>{
prompt.showToast({
message: '接口测试失败',
duration: 200,
})
})
}
}