Commit c3fc4b2c authored by sujie@126.com's avatar sujie@126.com

ddd

parent dab9582d
......@@ -579,10 +579,14 @@ Page({
})
})
this.newCommentIndex(clockDetail.id, function (likeRes) {
clockDetail.comments = likeRes.data.list[clockDetail.id]
that.setData({
selfClockDetail: clockDetail,
})
if (likeRes.data.list[clockDetail.id]) {
clockDetail.comments = likeRes.data.list[clockDetail.id]
} else {
clockDetail.comments = {
list: [],
total: 0
}
}
})
} else {
this.setData({
......
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