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;
|
||||
}
|
||||
|
||||
async function createProductService() {
|
||||
const res = await api.post<ProductGroupCreate>('/product-group');
|
||||
async function createProductService(data: ProductGroupCreate) {
|
||||
const { code, ...payload } = data;
|
||||
|
||||
const res = await api.post<ProductGroupCreate>('/product-group', {
|
||||
...payload,
|
||||
});
|
||||
|
||||
if (!res) return false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue