Commit a60fd817 authored by GuanHua's avatar GuanHua

fix: 渠道商城商品列表隐藏商品类型的是筛选

parent 65278b2a
......@@ -120,9 +120,13 @@ const Commodity: React.FC<CommodityPropsType> = (props) => {
useEffect(() => {
if (userInfo && layoutType === LAYOUT_TYPE.mall) {
const temp = JSON.parse(JSON.stringify(filterConfig))
const temp = [...filterConfig]
temp.unshift(FILTER_TYPE.commonlyUsed)
setFilterConfig(temp)
} else if(layoutType === LAYOUT_TYPE.channel || layoutType === LAYOUT_TYPE.ichannel) {
const temp = [...filterConfig]
temp.pop()
setFilterConfig(temp)
}
return (() => {
onResetFilter()
......
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