diff --git a/src/forge/SecuritySetting/notice/myNotice/Index.jsx b/src/forge/SecuritySetting/notice/myNotice/Index.jsx index 6977d94a..8a663d81 100644 --- a/src/forge/SecuritySetting/notice/myNotice/Index.jsx +++ b/src/forge/SecuritySetting/notice/myNotice/Index.jsx @@ -140,7 +140,6 @@ function MyNotice(props) { }); } }); - } function cancelBatchDelete(){ @@ -176,12 +175,12 @@ function MyNotice(props) {
- {onlyUnread===1 || messageList.length>0 ? e.target.checked ? setOnlyUnread(1) : setOnlyUnread()}>仅看未读{noticeType === "1" ? `私信(12)` : noticeType === "0" ? `消息(${noticeUnreadCount})` : `消息(${atUnreadCount})`}:""} + {onlyUnread===1 || messageList && messageList.length>0 ? e.target.checked ? setOnlyUnread(1) : setOnlyUnread()}>仅看未读{noticeType === "1" ? `私信(12)` : noticeType === "0" ? `消息(${noticeUnreadCount})` : `消息(${atUnreadCount})`}:""}
- {noticeType === "2" && messageList.length > 0 ? : ""} + {noticeType === "2" && messageList && messageList.length > 0 ? : ""}
- {messageList.length===0 ? :""} + {messageList && messageList.length===0 ? :""} {messageList && messageList.length>0 &&
@@ -194,7 +193,7 @@ function MyNotice(props) {
} - {messageList.map(item => { + {messageList && messageList.map(item => { // 系统消息 if (noticeType === "0") { // 消息类别