Commit 57da2d8c authored by Bill's avatar Bill

fix: 当消息为0时,隐藏全部已读按钮

parent f5fb8eab
......@@ -79,9 +79,13 @@ const Message: React.FC<{}> = () => {
<PageHeaderWrapper>
<Card
title="消息列表"
extra={(
<div><Button type="link" onClick={handleAllMessageRead}>全部已读</Button></div>
)}
extra={
(
dataSource?.totalCount > 0 ?
<Button type="link" onClick={handleAllMessageRead}>全部已读</Button> :
null
)
}
>
<List
itemLayout="horizontal"
......
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