u
This commit is contained in:
@@ -217,7 +217,7 @@ export const articleIndex = {
|
||||
name: a.name,
|
||||
eans: a.eans ?? [],
|
||||
categories: Array.isArray(a.categoryIds) ? a.categoryIds.join(',') : null,
|
||||
isFather: Boolean(a.isFather ?? a.is_father),
|
||||
isParent: Boolean(a.isParent ?? a.is_parent),
|
||||
}));
|
||||
},
|
||||
};
|
||||
@@ -547,11 +547,11 @@ export const article = {
|
||||
},
|
||||
|
||||
/**
|
||||
* POST /api/article/:sku/father
|
||||
* Body: { isFather: boolean, attributeNameId?: number }
|
||||
* POST /api/article/:sku/parent
|
||||
* Body: { isParent: boolean, attributeNameId?: number }
|
||||
*/
|
||||
toggleFather(sku, body) {
|
||||
return http(`/api/article/${encodeURIComponent(sku)}/father`, {
|
||||
toggleParent(sku, body) {
|
||||
return http(`/api/article/${encodeURIComponent(sku)}/parent`, {
|
||||
method: 'POST',
|
||||
body,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user