Skip to content

Commit

Permalink
添加获取网络状态的失败回调
Browse files Browse the repository at this point in the history
  • Loading branch information
hulinNeil committed Nov 14, 2018
1 parent 04489e3 commit 2cf5f3d
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit 2cf5f3d

Please sign in to comment.