Showing
3 changed files
with
5 additions
and
3 deletions
| @@ -18,8 +18,8 @@ export struct TabChatItemComponent { | @@ -18,8 +18,8 @@ export struct TabChatItemComponent { | ||
| 18 | 18 | ||
| 19 | build() { | 19 | build() { |
| 20 | Row() { | 20 | Row() { |
| 21 | - Image(StringUtils.isEmpty(this.item.senderUserAvatarUrl) ? $r('app.media.default_head') : | ||
| 22 | - this.item.senderUserAvatarUrl) | 21 | + Image(this.item.senderUserAvatarUrl) |
| 22 | + .alt($r('app.media.default_head')) | ||
| 23 | .borderRadius(90) | 23 | .borderRadius(90) |
| 24 | .width(24) | 24 | .width(24) |
| 25 | .height(24) | 25 | .height(24) |
| @@ -16,7 +16,8 @@ export struct TabLiveItemComponent { | @@ -16,7 +16,8 @@ export struct TabLiveItemComponent { | ||
| 16 | build() { | 16 | build() { |
| 17 | Column() { | 17 | Column() { |
| 18 | Row() { | 18 | Row() { |
| 19 | - Image(StringUtils.isEmpty(this.item.senderUserAvatarUrl) ? $r('app.media.default_head') : this.item.senderUserAvatarUrl) | 19 | + Image(this.item.senderUserAvatarUrl) |
| 20 | + .alt($r('app.media.default_head')) | ||
| 20 | .borderRadius(90) | 21 | .borderRadius(90) |
| 21 | .width(24) | 22 | .width(24) |
| 22 | .height(24) | 23 | .height(24) |
| @@ -164,6 +164,7 @@ export struct PlayerEndView { | @@ -164,6 +164,7 @@ export struct PlayerEndView { | ||
| 164 | .borderRadius(4) | 164 | .borderRadius(4) |
| 165 | if (this.contentDetailData.rmhInfo != null) { | 165 | if (this.contentDetailData.rmhInfo != null) { |
| 166 | Image(this.contentDetailData.rmhInfo?.rmhHeadUrl) | 166 | Image(this.contentDetailData.rmhInfo?.rmhHeadUrl) |
| 167 | + .alt($r('app.media.default_head')) | ||
| 167 | .width(80) | 168 | .width(80) |
| 168 | .height(80) | 169 | .height(80) |
| 169 | .borderRadius(40) | 170 | .borderRadius(40) |
-
Please register or login to post a comment