diff --git a/src/forge/Head/Header.js b/src/forge/Head/Header.js index fa3a5216..d6b2d12a 100644 --- a/src/forge/Head/Header.js +++ b/src/forge/Head/Header.js @@ -369,7 +369,6 @@ class NewHeader extends Component { let search_url = settings && settings.common && settings.common.search; let notice_url = settings && settings.common && settings.common.notice; - console.log(current_user); return (
@@ -448,11 +447,11 @@ class NewHeader extends Component { visible={visible} onVisibleChange={this.handleVisibleChange} > - + - + : "" } diff --git a/src/forge/Head/NoticeContent.jsx b/src/forge/Head/NoticeContent.jsx index d718c9f2..f5519f41 100644 --- a/src/forge/Head/NoticeContent.jsx +++ b/src/forge/Head/NoticeContent.jsx @@ -23,6 +23,10 @@ function NoticeContent({ visible, showNotification, resetUserInfo, current_user: const [atPage, setAtPage] = useState(0); const [atUnreadList, setAtUnreadList] = useState([]);//未读@我列表 + useEffect(() => { + resetUserInfo(); + }, [noticeUnreadCount,atUnreadCount]); + useEffect(() => { const params = { type: noticeType, @@ -86,7 +90,6 @@ function NoticeContent({ visible, showNotification, resetUserInfo, current_user: let data = response.data; if (!data) return; if (data.status === 0) { - resetUserInfo(); changeReadMarkAll(noticeType); } else { showNotification(data.message); @@ -133,7 +136,6 @@ function NoticeContent({ visible, showNotification, resetUserInfo, current_user: if (!data) return; if (data.status === 0) { changeReadMark(item); - resetUserInfo(); item.notification_url && window.open(item.notification_url); } else { showNotification(data.message); @@ -244,7 +246,7 @@ function NoticeContent({ visible, showNotification, resetUserInfo, current_user: ) }) : "暂无数据" : ""} */}
- 全部消息 + 全部消息 {noticeUnreadCount > 0 && noticeType === "notification" && 所有系统消息一键已读} {atUnreadCount > 0 && noticeType === "atme" && 所有@我一键已读}
diff --git a/src/forge/Head/header.scss b/src/forge/Head/header.scss index 9aa42570..affb697a 100644 --- a/src/forge/Head/header.scss +++ b/src/forge/Head/header.scss @@ -181,6 +181,7 @@ position: relative; .ant-scroll-number{ right:12px; + padding: 0 0px; } } diff --git a/src/forge/SecuritySetting/Index.jsx b/src/forge/SecuritySetting/Index.jsx index 7330040b..4a1c1a9f 100644 --- a/src/forge/SecuritySetting/Index.jsx +++ b/src/forge/SecuritySetting/Index.jsx @@ -61,7 +61,7 @@ function Index(props){