u
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user