minix-template
Version:
minix template
35 lines (33 loc) • 683 B
JavaScript
/*
* @Description:
* @Autor: tangsj
* @Date: 2022-04-27 09:52:57
* @LastEditTime: 2022-04-27 09:56:54
*/
import prompt from '@system.prompt'
import bridge from '@minix-iot/jsbridge-sdk'
import router from '@system.router'
export default {
data: {
},
getSystemInfoTouch(){
// prompt.showToast({
// message: '接口测试成功',
// duration: 200,
// })
bridge.getSystemInfo().then(res=>{
prompt.showToast({
message: JSON.stringify(res),
duration: 200,
})
}).catch(err=>{
prompt.showToast({
message: '接口测试失败',
duration: 200,
})
})
},
goBack(){
router.back();
}
}