...
|
...
|
@@ -87,6 +87,7 @@ function countBindProduct(categoryId) { |
|
|
.then(res => res.data);
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 增加类目中关联的商品
|
|
|
* @param categoryId {string | array}
|
...
|
...
|
@@ -97,7 +98,7 @@ function createBindProduct(categoryId, productSKN) { |
|
|
|
|
|
}
|
|
|
return request.post(apiUrl.createBindProduct, {
|
|
|
categoryId, productSKN: _.isArray(productSKN) ? productSKN.join(',') : productSKN
|
|
|
categoryId, productSKN: _.isArray(productSKN) ? productSKN : [productSKN]
|
|
|
}).then(res => res.data);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -108,7 +109,7 @@ function createBindProduct(categoryId, productSKN) { |
|
|
*/
|
|
|
function deleteBindProduct(categoryId, productSKN) {
|
|
|
return request.post(apiUrl.deleteBindProduct, {
|
|
|
categoryId, productSKN: _.isArray(productSKN) ? productSKN.join(',') : productSKN
|
|
|
categoryId, productSKN: _.isArray(productSKN) ? productSKN : [productSKN]
|
|
|
}).then(res => res.data);
|
|
|
}
|
|
|
|
...
|
...
|
|