ref |> 修复评论列表评论region为空情况显示人民日报客户端网友
Signed-off-by: xugenyuan <xugenyuan@wondertek.com.cn>
Showing
1 changed file
with
1 additions
and
1 deletions
| @@ -596,7 +596,7 @@ struct commentFooterView { | @@ -596,7 +596,7 @@ struct commentFooterView { | ||
| 596 | Row() { | 596 | Row() { |
| 597 | 597 | ||
| 598 | Row({ space: 6 }) { | 598 | Row({ space: 6 }) { |
| 599 | - Text(this.item.region ? (this.item.region + '网友') : '人民日报客户端网友') | 599 | + Text(this.item.region.length > 0 ? (this.item.region + '网友') : '人民日报客户端网友') |
| 600 | .fontColor($r('app.color.color_B0B0B0')) | 600 | .fontColor($r('app.color.color_B0B0B0')) |
| 601 | .fontSize(12); | 601 | .fontSize(12); |
| 602 | Image($r('app.media.comment_hyphen')) | 602 | Image($r('app.media.comment_hyphen')) |
-
Please register or login to post a comment