fix: create service and edit product image
This commit is contained in:
parent
18c32e3b34
commit
3792c19ce4
3 changed files with 7 additions and 2 deletions
|
|
@ -451,7 +451,7 @@ const useProductServiceStore = defineStore('api-product-service', () => {
|
|||
}
|
||||
|
||||
async function createService(data: ServiceCreate) {
|
||||
const { image, status, productTypeId, ...payload } = data;
|
||||
const { image, status, ...payload } = data;
|
||||
|
||||
const res = await api.post<ServiceCreate & { imageUploadUrl: string }>(
|
||||
'/service',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue