bug-read property 'length' of undefined
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -279,7 +279,7 @@ class DetailModel extends global.yoho.BaseModel { | @@ -279,7 +279,7 @@ class DetailModel extends global.yoho.BaseModel { | ||
279 | let textPosition = 1, | 279 | let textPosition = 1, |
280 | descriptionText; | 280 | descriptionText; |
281 | 281 | ||
282 | - result.getArticleContent = getArticleContent = datas[1].data; | 282 | + result.getArticleContent = getArticleContent = datas[1].data || []; |
283 | 283 | ||
284 | for (let i = 0; i < getArticleContent.length; i++) { | 284 | for (let i = 0; i < getArticleContent.length; i++) { |
285 | 285 |
-
Please register or login to post a comment