修复滚动通知报错

This commit is contained in:
al 2025-01-21 18:59:58 +08:00
parent 905f7b10cb
commit 5912e65256
2 changed files with 4 additions and 2 deletions

View File

@ -218,7 +218,7 @@ const MessageList = ({ mid, changeNoticeCount, refInstance, noticeCount }) => {
return (
<div className="flex flex-col flex-1 p-4">
{/* 广告轮播 */}
{!!scollNotice.content && <ScrollNotice data={scollNotice} />}
{!!scollNotice?.content && <ScrollNotice data={scollNotice} />}
{/* 官方消息 */}
<div className="flex flex-col rounded-2xl mt-3.5">

View File

@ -76,7 +76,9 @@ export default function ScrollNotice({ data }) {
/>
}
bordered={false}
content={<div>{data.content}</div>}
content={
<div className="text-[#FF669E] text-[12px]">{data.content}</div>
}
style={{
"--background-color": "transparent",
"--height": "max-content",