Showing
1 changed file
with
1 additions
and
1 deletions
| @@ -151,7 +151,7 @@ export struct CardSourceInfo { | @@ -151,7 +151,7 @@ export struct CardSourceInfo { | ||
| 151 | .flexShrink(0) | 151 | .flexShrink(0) |
| 152 | .margin({right: 4}) | 152 | .margin({right: 4}) |
| 153 | } | 153 | } |
| 154 | - if (this.getContentDtoBean()?.interactData?.commentNum && this.showCommentNum()) { | 154 | + if (Number(this.getContentDtoBean()?.interactData?.commentNum) > 0 && this.showCommentNum()) { |
| 155 | Text(`${this.handlerNum(this.getContentDtoBean()?.interactData?.commentNum.toString())}评`) | 155 | Text(`${this.handlerNum(this.getContentDtoBean()?.interactData?.commentNum.toString())}评`) |
| 156 | .fontSize($r("app.float.font_size_11")) | 156 | .fontSize($r("app.float.font_size_11")) |
| 157 | .fontColor($r("app.color.color_B0B0B0")) | 157 | .fontColor($r("app.color.color_B0B0B0")) |
-
Please register or login to post a comment