Commit 78f5d4b3 by 高淑倩

非空检验

parent 9e4b8e02
......@@ -17,7 +17,7 @@ Component({
},
attached() {
this.setData({
baseImgUrl: app.globalData.imageUrl
baseImgUrl: app.globalData.imageUrl || ''
})
},
/**
......
......@@ -67,7 +67,7 @@ Component({
attached () {
this.setData({
personCenter: this.data.personData,
baseImgUrl: app.globalData.imageUrl
baseImgUrl: app.globalData.imageUrl || ''
})
// let base64 = wx.getFileSystemManager().readFileSync(this.data.baseUrl, "base64");
......
......@@ -17,7 +17,7 @@ Component({
},
attached() {
this.setData({
baseImgUrl: app.globalData.imageUrl
baseImgUrl: app.globalData.imageUrl || ''
})
},
/**
......
......@@ -17,7 +17,7 @@ Component({
},
attached () {
this.setData({
baseImgUrl: app.globalData.imageUrl
baseImgUrl: app.globalData.imageUrl || ''
})
},
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment