Commit 9c906969 authored by 武广's avatar 武广

fix: 修改商品导出传参问题

parent 50576feb
...@@ -84,7 +84,12 @@ class goodsManage extends Component { ...@@ -84,7 +84,12 @@ class goodsManage extends Component {
loading: true, loading: true,
}); });
const form = this.formRef?.current?.getFieldValue(); const form = this.formRef?.current?.getFieldValue();
const res = await apiGoodsInfosExport(form); const params = Object.assign({}, form);
const productCategoryId = form?.productCategoryId || [];
if (productCategoryId.length) {
params.productCategoryId = productCategoryId[productCategoryId.length - 1] || '';
}
const res = await apiGoodsInfosExport(params);
this.setState({ this.setState({
loading: false, loading: false,
}); });
......
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