Commit 71df50a9 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix: 处理新建价格策略自营商城取参数错误问题

parent 064523f4
......@@ -46,14 +46,12 @@ const ProductModal: React.FC<ProductModalProps> = (props) => {
// 指定商品
const fetchProductList = async (params) => {
const shopId = schemaAction.getFieldValue('shopId')
let shopInfo: any = GlobalConfig.web.shopInfo.filter(item => item.id === shopId)
const values = schemaAction.getFieldState('shopId')['values']
const res = await getProductCommodityGetStrategyCommodityList({
...params,
type: shopInfo[0]["type"],
environment: shopInfo[0].environment,
shopId,
type: values[1]["type"],
environment: values[1]['environment'],
shopId: values[0],
// priceTypeList: [1, 2],
})
return res.data
......
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