Commit 9426ebc6 authored by GuanHua's avatar GuanHua

feat:商城首页报错问题,和更新god版本

parent 4f42e10a
......@@ -44,7 +44,7 @@
"antd-img-crop": "^3.12.0",
"bizcharts": "^4.0.14",
"copy-to-clipboard": "^3.3.1",
"god": "0.1.29",
"god": "^0.1.30",
"lingxi-design": "^1.0.8",
"lingxi-design-ui": "^1.1.10",
"lingxi-editor-core": "^1.0.6",
......@@ -84,4 +84,4 @@
"json2ts": "^0.0.7",
"ora": "^4.0.4"
}
}
\ No newline at end of file
}
......@@ -147,7 +147,12 @@ const MallIndex: React.FC<MallIndexPropsType> = (props) => {
}
<FloorAnchor anchorList={categoryList} type="mall" />
{
(secondAdvertList && secondAdvertList.length > 0) ? useMemo(() => <Advert type="interact" advertList={secondAdvertList} />, [secondAdvertList]) : null
secondAdvertList ? useMemo(() => {
if (secondAdvertList.length > 0) {
return <Advert type="interact" advertList={secondAdvertList} />
}
return null
}, [secondAdvertList]) : null
}
{
categoryComponents ? categoryComponents : loading ? <FloorSkeleton type={LAYOUT_TYPE.mall} /> : null
......
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