fix: Product แก้สถานะ

This commit is contained in:
Net 2024-06-20 13:58:42 +07:00
parent 3fca025af8
commit 39ba6b7c3b
2 changed files with 11 additions and 3 deletions

View file

@ -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 }>(