提交 2cf5f3d6 编写于 作者: H hulinneil

添加获取网络状态的失败回调

上级 04489e32
......@@ -37,7 +37,13 @@
success: (res) => {
console.log(res)
this.hasNetworkType = true, this.networkType = res.subtype || res.networkType
}
},
fail: () => {
uni.showModal({
content:'获取失败!',
showCancel:false
})
}
})
},
clear: function () {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册