fix: แก้รับค่า createProductService
This commit is contained in:
parent
16fcec3a54
commit
5b7e8f7b52
1 changed files with 6 additions and 2 deletions
|
|
@ -58,8 +58,12 @@ const useProductServiceStore = defineStore('api-product-service', () => {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function createProductService() {
|
async function createProductService(data: ProductGroupCreate) {
|
||||||
const res = await api.post<ProductGroupCreate>('/product-group');
|
const { code, ...payload } = data;
|
||||||
|
|
||||||
|
const res = await api.post<ProductGroupCreate>('/product-group', {
|
||||||
|
...payload,
|
||||||
|
});
|
||||||
|
|
||||||
if (!res) return false;
|
if (!res) return false;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue