Commit 327a1353 authored by guang.wu's avatar guang.wu

fix: 修改类目参数问题

parent 27ee73e9
...@@ -443,6 +443,9 @@ export async function apiUploadGoodsFile(file) { ...@@ -443,6 +443,9 @@ export async function apiUploadGoodsFile(file) {
* yApi: http://yapi.quantgroups.com/project/389/interface/api/67269 * yApi: http://yapi.quantgroups.com/project/389/interface/api/67269
* * */ * * */
export async function apiDownBiddingTemplate(params) { export async function apiDownBiddingTemplate(params) {
const productCategoryId = params?.productCategoryId || [];
params.productCategoryId =
(productCategoryId.length && productCategoryId[productCategoryId.length - 1]) || '';
const res = await request.post('/api/merchants/products/bidding-template/export', { const res = await request.post('/api/merchants/products/bidding-template/export', {
data: stringify(_.omitBy(params, v => v === undefined && v === null && v === '')), data: stringify(_.omitBy(params, v => v === undefined && v === null && v === '')),
headers, headers,
......
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