feat: ให้ส่งเเค่ตัวเดียวได้

This commit is contained in:
Net 2024-06-21 16:24:05 +07:00
parent 9b6aaebe97
commit a02dd8b5e0

View file

@ -579,7 +579,7 @@ const useProductServiceStore = defineStore('api-product-service', () => {
return false;
}
async function createWork(data: WorkCreate) {
async function createWork(data: Partial<WorkCreate>) {
const { ...payload } = data;
const res = await api.post<WorkCreate>('/work', {
@ -607,7 +607,7 @@ const useProductServiceStore = defineStore('api-product-service', () => {
async function editWork(
workId: string,
data: WorkCreate & { status: string },
data: Partial<WorkCreate & { status: string }>,
) {
const { ...payload } = data;