Showing
1 changed file
with
1 additions
and
1 deletions
| @@ -44,7 +44,7 @@ export struct SearchContentComponent { | @@ -44,7 +44,7 @@ export struct SearchContentComponent { | ||
| 44 | //body | 44 | //body |
| 45 | Column() { | 45 | Column() { |
| 46 | //新闻标题 | 46 | //新闻标题 |
| 47 | - Text(this.contentDTO.newsTitle) | 47 | + Text(this.contentDTO.newsTitle || this.contentDTO.title) |
| 48 | .fontSize($r('app.float.font_size_18')) | 48 | .fontSize($r('app.float.font_size_18')) |
| 49 | .fontColor(this.clicked ? 0x848484 : $r('app.color.color_222222')) | 49 | .fontColor(this.clicked ? 0x848484 : $r('app.color.color_222222')) |
| 50 | .maxLines(3) | 50 | .maxLines(3) |
-
Please register or login to post a comment