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;