fix: Product แก้สถานะ
This commit is contained in:
parent
3fca025af8
commit
39ba6b7c3b
2 changed files with 11 additions and 3 deletions
|
|
@ -329,7 +329,10 @@ const useProductServiceStore = defineStore('api-product-service', () => {
|
|||
}
|
||||
}
|
||||
|
||||
async function editProduct(productId: string, data: ProductCreate) {
|
||||
async function editProduct(
|
||||
productId: string,
|
||||
data: ProductCreate & { status: string },
|
||||
) {
|
||||
const { image, code, ...payload } = data;
|
||||
|
||||
const res = await api.put<ProductCreate & { imageUploadUrl: string }>(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue