From 987c82f5c421ced500561e5f6d3bb53682df8264 Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Thu, 20 Jun 2024 10:54:19 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E0=B9=81=E0=B8=81=E0=B9=89=20type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/product-service/index.ts | 7 +++++-- src/stores/product-service/types.ts | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/stores/product-service/index.ts b/src/stores/product-service/index.ts index 4aa23e6f..b421e8c2 100644 --- a/src/stores/product-service/index.ts +++ b/src/stores/product-service/index.ts @@ -105,7 +105,7 @@ const useProductServiceStore = defineStore('api-product-service', () => { async function editProductServiceType( groupId: string, - data: ProductGroupUpdate & { productGroupId: string }, + data: Partial, ) { const { code, ...payload } = data; @@ -210,7 +210,10 @@ const useProductServiceStore = defineStore('api-product-service', () => { return false; } - async function editProductService(groupId: string, data: ProductGroupUpdate) { + async function editProductService( + groupId: string, + data: Partial, + ) { const { code, ...payload } = data; const res = await api.put(`/product-group/${groupId}`, { diff --git a/src/stores/product-service/types.ts b/src/stores/product-service/types.ts index 051841b3..06831bef 100644 --- a/src/stores/product-service/types.ts +++ b/src/stores/product-service/types.ts @@ -147,4 +147,5 @@ export interface ProductGroupUpdate { detail: string; name: string; code: string; + status: Status; }