From a02dd8b5e007755b701c1e50ba0ef9eb30055823 Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Fri, 21 Jun 2024 16:24:05 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E0=B9=83=E0=B8=AB=E0=B9=89=E0=B8=AA?= =?UTF-8?q?=E0=B9=88=E0=B8=87=E0=B9=80=E0=B9=80=E0=B8=84=E0=B9=88=E0=B8=95?= =?UTF-8?q?=E0=B8=B1=E0=B8=A7=E0=B9=80=E0=B8=94=E0=B8=B5=E0=B8=A2=E0=B8=A7?= =?UTF-8?q?=E0=B9=84=E0=B8=94=E0=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/product-service/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stores/product-service/index.ts b/src/stores/product-service/index.ts index 4e979489..6e448954 100644 --- a/src/stores/product-service/index.ts +++ b/src/stores/product-service/index.ts @@ -579,7 +579,7 @@ const useProductServiceStore = defineStore('api-product-service', () => { return false; } - async function createWork(data: WorkCreate) { + async function createWork(data: Partial) { const { ...payload } = data; const res = await api.post('/work', { @@ -607,7 +607,7 @@ const useProductServiceStore = defineStore('api-product-service', () => { async function editWork( workId: string, - data: WorkCreate & { status: string }, + data: Partial, ) { const { ...payload } = data;