This commit is contained in:
seb
2026-10-09 10:42:24 +02:00
parent 1933ac794d
commit 38339b13a2
8 changed files with 353 additions and 37 deletions

View File

@@ -244,11 +244,11 @@ export const article = {
},
/** POST /api/article → 201 { article } */
create({ parentId, name, track_stock }) {
create({ categoryId, name, track_stock }) {
return http('/api/article', {
method: 'POST',
body: {
parentId: Number(parentId),
categoryId: Number(categoryId),
name,
...(track_stock !== undefined ? { track_stock: Boolean(track_stock) } : {}),
},
@@ -2234,4 +2234,3 @@ export default {
globalHistory,
};