diff --git a/src/components/GuideBar/index.tsx b/src/components/GuideBar/index.tsx index b41a269..4c6a350 100644 --- a/src/components/GuideBar/index.tsx +++ b/src/components/GuideBar/index.tsx @@ -51,7 +51,7 @@ const GuideBar = (props) => { if (code === currentPage) { return; } - + // 如果提供了 onTabChange 回调,优先使用(单页面模式) if (onTabChange) { onTabChange(code); @@ -91,9 +91,9 @@ const GuideBar = (props) => { key={item.code} > {item.text} - {/* {item.code === "message" && hasReddot && ( + {item.code === "message" && hasReddot && ( - )} */} + )} ))} diff --git a/src/other_pages/message/index.tsx b/src/other_pages/message/index.tsx index 80d0963..527559a 100644 --- a/src/other_pages/message/index.tsx +++ b/src/other_pages/message/index.tsx @@ -170,7 +170,7 @@ const Message = () => { /> {commentUnreadCount > 0 && ( - {commentUnreadCount > 99 ? '99+' : commentUnreadCount} + {commentUnreadCount > 99 ? '+99' : `+${commentUnreadCount}`} )} @@ -188,7 +188,7 @@ const Message = () => { /> {followUnreadCount > 0 && ( - {followUnreadCount > 99 ? '99+' : followUnreadCount} + {followUnreadCount > 99 ? '+99' : `+${followUnreadCount}`} )}