Commit 93c4c22e authored by GuanHua's avatar GuanHua

fix:去除模板装修商品和店铺品牌必选的限制

parent dda9dbc7
......@@ -112,10 +112,11 @@ const BrandSetting: React.FC<ShopSettingPropsType> = (props) => {
if (JSON.stringify(brandList) === JSON.stringify(selectBrandList)) {
return
}
if (selectBrandList.length <= 0) {
message.error("请选择要推荐的品牌")
return
} else if (selectBrandList.length > 6) {
// if (selectBrandList.length <= 0) {
// message.error("请选择要推荐的品牌")
// return
// } else
if (selectBrandList.length > 6) {
message.error("最多推荐6个品牌")
return
}
......
......@@ -172,10 +172,11 @@ const GoodsSetting: React.FC<GoodsSettingPropsType> = (props) => {
if (JSON.stringify(goodsList) === JSON.stringify(selectGoodsList)) {
return
}
if (selectGoodsList.length <= 0) {
message.error("请选择要推荐的商品")
return
} else if (selectGoodsList.length > 10) {
// if (selectGoodsList.length <= 0) {
// message.error("请选择要推荐的商品")
// return
// } else
if (selectGoodsList.length > 10) {
message.error("最多推荐10件商品")
return
}
......
......@@ -113,10 +113,11 @@ const ShopSetting: React.FC<ShopSettingPropsType> = (props) => {
return
}
if (selectShopsList.length <= 0) {
message.error("请选择要推荐的店铺")
return
} else if (selectShopsList.length > 5) {
// if (selectShopsList.length <= 0) {
// message.error("请选择要推荐的店铺")
// return
// } else
if (selectShopsList.length > 5) {
message.error("最多推荐5个店铺")
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