8ed5d1b6 by 华明祺

no message

1 parent 8fda6e2c
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() {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!