Showing
1 changed file
with
6 additions
and
4 deletions
| @@ -23,10 +23,12 @@ Page({ | @@ -23,10 +23,12 @@ Page({ | ||
| 23 | */ | 23 | */ |
| 24 | onLoad: function (options) { | 24 | onLoad: function (options) { |
| 25 | App.Customer.GetCustomerInfo().then(res=>{ | 25 | App.Customer.GetCustomerInfo().then(res=>{ |
| 26 | - this.user = res.data | ||
| 27 | - this.setData({ | ||
| 28 | - user: res.data, | ||
| 29 | - }) | 26 | + if(res.data){ |
| 27 | + this.user = res.data | ||
| 28 | + this.setData({ | ||
| 29 | + user: res.data, | ||
| 30 | + }) | ||
| 31 | + } | ||
| 30 | }) | 32 | }) |
| 31 | }, | 33 | }, |
| 32 | 34 |
-
Please register or login to post a comment