UNPKG

minix-template

Version:

minix template

41 lines (39 loc) 764 B
/* * @Description: * @Autor: tangsj * @Date: 2022-04-25 17:06:18 * @LastEditTime: 2022-04-26 17:48:31 */ /* * @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: { }, logTouch(){ const params={ "level":"Error", "message":"This is Error log" } bridge.log(params).then(res=>{ prompt.showToast({ message: '接口测试成功', duration: 200, }) }).catch(err=>{ prompt.showToast({ message: '接口测试失败', duration: 200, }) }) }, goBack(){ router.back(); } }