From e8bcebbf717ed8f097735a2309e56ffb59de1182 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Wed, 29 Dec 2021 11:41:34 +0800 Subject: [PATCH] notice-show --- src/forge/Component/NoticeModal/Index.scss | 2 +- src/forge/Component/NoticeModal/SystemNotice.jsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/forge/Component/NoticeModal/Index.scss b/src/forge/Component/NoticeModal/Index.scss index 18e4dcda0..ab83ea148 100644 --- a/src/forge/Component/NoticeModal/Index.scss +++ b/src/forge/Component/NoticeModal/Index.scss @@ -29,12 +29,12 @@ font-weight: 500; color: #FFFFFF; margin-top: 60px; - padding-left: 20px; } .markdown-body{ box-shadow: 0px 0px 17px rgba(0,0,0,0.2); border-radius: 4px; margin-top: 17px!important; + color: white; } .nContent{ padding:20px 34px; diff --git a/src/forge/Component/NoticeModal/SystemNotice.jsx b/src/forge/Component/NoticeModal/SystemNotice.jsx index 02922415d..c95a8030c 100644 --- a/src/forge/Component/NoticeModal/SystemNotice.jsx +++ b/src/forge/Component/NoticeModal/SystemNotice.jsx @@ -10,10 +10,11 @@ function SystemNotice({showNotice,system_notification,history,login,hideSystemNo const [ visible , setVisible ] = useState(false); useEffect(()=>{ + if(system_notification && !system_notification.is_read && showNotice && login){ setVisible(true); } - },[system_notification]) + },[system_notification,login]) function sureContinue() { if(login && ( system_notification && system_notification.id )){