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:
commit
bfdac91b0c
|
@ -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">
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue