Commit a92dc0116349068c414d61ea0be928b394b2d61b

Authored by vking
1 parent e8f61a6d

taocan-share-pinglun

Showing 1 changed file with 10 additions and 3 deletions
... ... @@ -18,9 +18,16 @@ Component({
},
attached(){
this.setData({
enclosure:JSON.parse(this.data.post.enclosure||null)
})
// this.setData({
// enclosure:JSON.parse(this.data.post.enclosure||null)
// })
},
observers: {
'post': function(post) {
this.setData({
enclosure:JSON.parse(post.enclosure||null)
})
}
},
/**
* 组件的方法列表
... ...