Commit da0f5612 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏
parents eeed6163 1b55d830
......@@ -105,6 +105,7 @@ const CategoryRecommendSetting: React.FC<CategoryRecommendSettingPropsType> = (p
}
if (selectKeys.length > 4) {
message.error('最多推荐4个二级品类')
reject()
return
}
const param = {
......@@ -126,6 +127,8 @@ const CategoryRecommendSetting: React.FC<CategoryRecommendSettingPropsType> = (p
} else {
reject()
}
}).catch(() => {
reject()
})
})
}
......
......@@ -98,7 +98,7 @@ const GoodsSetting: React.FC<GoodsSettingPropsType> = (props) => {
useEffect(() => {
fetchGoodsList()
}, [filterParam, current])
}, [filterParam, current, pageSize])
const fetchGoodsList = () => {
let param: any = {
......@@ -199,7 +199,7 @@ const GoodsSetting: React.FC<GoodsSettingPropsType> = (props) => {
// message.error("请选择要推荐的商品")
// return
// } else
if (selectGoodsList.length > 10) {
if (selectGoodsList.length > 9) {
message.error("最多只能推荐10件商品")
return
}
......
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