minix-template
Version:
minix template
47 lines (45 loc) • 903 B
JavaScript
/*
* @Description:
* @Autor: tangsj
* @Date: 2022-04-25 18:44:26
* @LastEditTime: 2022-04-26 17:10:14
*/
/*
* @Description:
* @Autor: tangsj
* @Date: 2022-04-25 17:06:18
* @LastEditTime: 2022-04-25 18:26:58
*/
/*
* @Description:
* @Autor: tangsj
* @Date: 2022-04-25 15:00:06
* @LastEditTime: 2022-04-25 16:32:15
*/
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();
}
}