Commit 3581b8d6 authored by 武广's avatar 武广

Merge branch 'feature/download-goodsxlsx' into 'master'

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

See merge request !77
parents 50576feb 9c906969
......@@ -84,7 +84,12 @@ class goodsManage extends Component {
loading: true,
});
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({
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