Commit 637b9354 authored by GuanHua's avatar GuanHua

fix: 店铺装修无法选择商品问题

parent d35478d7
......@@ -242,7 +242,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
if (appConfig?.informationBO) {
mobileChannelInformation[mobileChannelInformation.key].props.title = appConfig?.informationBO.title
mobileChannelInformation[mobileChannelInformation.key].props.informationIdList = appConfig?.informationBO.informationIdList
mobileChannelInformation[mobileChannelInformation.key].props.informationIdList = appConfig?.informationBO.informationIdList || []
mobileChannelInformation[mobileChannelInformation.key].props.dataList = await getInformationInfo(appConfig?.informationBO.informationIdList)
}
......
......@@ -128,7 +128,12 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
* @param idList
*/
const fetchCategoryByCommodityId = (idList: number[]) => {
return new Promise((resolve) => {
if(!idList) {
resolve([])
return
}
const param = {
idList
}
......@@ -170,7 +175,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
mobileShopCommodityList[mobileShopCommodityList.key].props = {
storeId: shopInfo.id,
title: appConfig.productBO.title,
productIdList: appConfig.productBO.productIdList,
productIdList: appConfig.productBO.productIdList || [],
dataList,
}
} else {
......
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