Merge pull request '修复滚动通知报错' (#32) from anln_1.5 into main

Reviewed-on: https://git.wishpal.cn/wishpal_ironfan/tiefen_space_h5/pulls/32
This commit is contained in:
yezian 2025-01-21 19:00:43 +08:00
commit bfdac91b0c
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",