Browse Source

fix: handle login func catch cb

wangyuan 2 years ago
parent
commit
c1b0432ae3
1 changed files with 5 additions and 0 deletions
  1. 5 0
      pages/index/index.js

+ 5 - 0
pages/index/index.js

@@ -68,6 +68,11 @@ Page({
       that.setStorage(res.data)
     }).catch(e => {
       wx.hideLoading()
+      wx.showModal({
+        content: e,
+        confirmColor: '#333',
+        showCancel: false
+      })
     })
   },
   handleUserLoginRes () {