Commit 52eeb0ac authored by GuanHua's avatar GuanHua

feat:商城首页模板id问题

parent bfbfb1ac
......@@ -23,10 +23,12 @@ const MallIndex: React.FC<MallIndexPropsType> = (props) => {
const [categoryComponents, setCategoryComponents] = useState<React.ReactNode>()
useEffect(() => {
getCategoryComponents()
findFirstAdvertsByType()
findSecondAdvertsByType()
}, [])
if (mallTemplateId) {
getCategoryComponents()
findFirstAdvertsByType()
findSecondAdvertsByType()
}
}, [mallTemplateId])
const findFirstAdvertsByType = () => {
let params = {
......
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