Showing
1 changed file
with
2 additions
and
2 deletions
@@ -183,7 +183,7 @@ const _processHeadData = (list) => { | @@ -183,7 +183,7 @@ const _processHeadData = (list) => { | ||
183 | 183 | ||
184 | if (index === 2) { | 184 | if (index === 2) { |
185 | newData.headData = _.assign(newData.headData, { | 185 | newData.headData = _.assign(newData.headData, { |
186 | - commentNum: data.total | 186 | + commentNum: data.total || 0 |
187 | }); | 187 | }); |
188 | } | 188 | } |
189 | }); | 189 | }); |
@@ -697,7 +697,7 @@ const getDetailData = (id, appType, gender, tag, uid, udid) => { | @@ -697,7 +697,7 @@ const getDetailData = (id, appType, gender, tag, uid, udid) => { | ||
697 | head: res.headData, | 697 | head: res.headData, |
698 | tags: res.tags, | 698 | tags: res.tags, |
699 | content: result[2], | 699 | content: result[2], |
700 | - comment: result[3], | 700 | + comment: _.assign({total: 0}, result[3]), |
701 | brands: result[6], | 701 | brands: result[6], |
702 | nextArticle: result[5], | 702 | nextArticle: result[5], |
703 | perArticle: result[4] | 703 | perArticle: result[4] |
-
Please register or login to post a comment