Commit f17ec721 authored by GuanHua's avatar GuanHua

fix: 装修接口传参修改

parent 5d4c34f2
......@@ -39,7 +39,7 @@ const SuggestProductCommodity: React.FC<SuggestProductCommodityProps> = (props:
if (id && id != record.id) {
const _params: any = {
shopId,
idInList: id,
idInList: Array.isArray(id) ? id.join(',') : id,
current: 1,
pageSize: 10
}
......
......@@ -136,7 +136,7 @@ const CommodityDrawer: React.FC<CommodityDrawerProps> = (props: CommodityDrawerP
const _params = {
// ...params,
shopId,
idNotInList: Array.isArray(selectId) ? selectId : [selectId],
idNotInList: Array.isArray(selectId) ? selectId.join(',') : selectId,
...formated
};
const fetchService = service || getMarketingAdornChannelGoodsListAdorn;
......
......@@ -65,7 +65,7 @@ const CustomizeTabs: React.FC<Iprops> & { TabItem: typeof TabItem } = (props: Ip
? getMarketingAdornGoodsListAdorn
: getMarketingAdornChannelGoodsListAdorn
return service({
idInList: ids as any || [],
idInList: Array.isArray(ids) ? ids.join(",") : ids,
shopId: shopId,
current: 1,
pageSize: ids?.length,
......
......@@ -220,7 +220,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
})
if (commodityIds && commodityIds.length > 0) {
const param: any = {
idInList: commodityIds,
idInList: commodityIds.join(','),
shopId: shopId,
current: 1,
pageSize: 80
......
......@@ -205,7 +205,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
})
if (commodityIds && commodityIds.length > 0) {
const param: any = {
idInList: commodityIds,
idInList: commodityIds.join(','),
shopId: shopId,
current: 1,
pageSize: 80
......
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