Commit 85d99182 authored by 邓晓峰's avatar 邓晓峰

feat: 优化消息

parent 687b27ff
Pipeline #22295 skipped with stages
...@@ -65,15 +65,18 @@ const NoticeIcon = props => { ...@@ -65,15 +65,18 @@ const NoticeIcon = props => {
/>, />,
); );
}); });
const childProps = panes.length === 1 ? panes[0].props : { list: [] };
return ( return (
<> <>
<div className={styles.header}> <div className={styles.header}>
<span className={styles.title}>通知</span> <span className={styles.title}>通知</span>
<span <span
onClick={() => { onClick={() =>
confirmRead(true); childProps.list.length > 0 ? confirmRead(true) : null
}
style={{
color: childProps.list.length === 0 && 'rgba(0, 0, 0, 0.5)',
}} }}
style={{ color: panes.length === 0 && 'rgba(0, 0, 0, 0.5)' }}
> >
全部标记已读 全部标记已读
</span> </span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment