Commit 670a8e8ae016c1ed64c5f37b891d36ab1a805714

Authored by vking
1 parent 08e5aa5c

online

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