diff --git a/src/api/product.js b/src/api/product.js index e3e5ed1..51f1430 100644 --- a/src/api/product.js +++ b/src/api/product.js @@ -98,7 +98,7 @@ export default { * 保存种类的属性定义 */ saveCategoryAttributes(categoryId, attrs) { - return api.request(`/products/categories/${categoryId}/attributes`, 'POST', {}, { attributes: attrs }) + return api.request(`/products/categories/${categoryId}/attributes`, 'POST', {}, attrs) }, // ============ 商品属性 ============