no message
Showing
1 changed file
with
14 additions
and
2 deletions
| ... | @@ -24,12 +24,24 @@ | ... | @@ -24,12 +24,24 @@ |
| 24 | } | 24 | } |
| 25 | }) | 25 | }) |
| 26 | .catch(() => { | 26 | .catch(() => { |
| 27 | showLogin() | 27 | showLogin(() => { |
| 28 | this.globalData.isLogin = true; | ||
| 29 | let firstLoadCallback = getApp().firstLoadCallback; | ||
| 30 | if (firstLoadCallback) { | ||
| 31 | firstLoadCallback(); | ||
| 32 | } | ||
| 33 | }) | ||
| 28 | }) | 34 | }) |
| 29 | 35 | ||
| 30 | } else { | 36 | } else { |
| 31 | this.globalData.isLogin = false; | 37 | this.globalData.isLogin = false; |
| 32 | showLogin() | 38 | showLogin(() => { |
| 39 | this.globalData.isLogin = true; | ||
| 40 | let firstLoadCallback = getApp().firstLoadCallback; | ||
| 41 | if (firstLoadCallback) { | ||
| 42 | firstLoadCallback(); | ||
| 43 | } | ||
| 44 | }) | ||
| 33 | } | 45 | } |
| 34 | }, | 46 | }, |
| 35 | onShow: function() { | 47 | onShow: function() { | ... | ... |
-
Please register or sign in to post a comment