bug优化

This commit is contained in:
XiuYun CHEN
2025-08-15 17:35:06 +08:00
parent 7035dbcdfb
commit f1032ddef1
4 changed files with 11 additions and 5 deletions
@@ -26,7 +26,7 @@ export struct ItemCompPublic {
.fontColor($r('app.color.top_title'))
.layoutWeight(1)
Text(this.item.createDate ?
this.item.createDate.length > 16 ? this.item.createDate.substring(1, 16) : this.item.createDate : '')
this.item.createDate.length > 16 ? this.item.createDate.substring(0, 16) : this.item.createDate : '')
.fontSize(15).fontColor($r('app.color.top_title')).padding({ left: 5 })
Text(this.unreadCount>100?'...':this.unreadCount+'')
.width(18)