notice-show

This commit is contained in:
caishi 2021-12-29 11:41:34 +08:00
parent afaef5f0d0
commit e8bcebbf71
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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 )){