feat: ให้ส่งเเค่ตัวเดียวได้
This commit is contained in:
parent
9b6aaebe97
commit
a02dd8b5e0
1 changed files with 2 additions and 2 deletions
|
|
@ -579,7 +579,7 @@ const useProductServiceStore = defineStore('api-product-service', () => {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function createWork(data: WorkCreate) {
|
async function createWork(data: Partial<WorkCreate>) {
|
||||||
const { ...payload } = data;
|
const { ...payload } = data;
|
||||||
|
|
||||||
const res = await api.post<WorkCreate>('/work', {
|
const res = await api.post<WorkCreate>('/work', {
|
||||||
|
|
@ -607,7 +607,7 @@ const useProductServiceStore = defineStore('api-product-service', () => {
|
||||||
|
|
||||||
async function editWork(
|
async function editWork(
|
||||||
workId: string,
|
workId: string,
|
||||||
data: WorkCreate & { status: string },
|
data: Partial<WorkCreate & { status: string }>,
|
||||||
) {
|
) {
|
||||||
const { ...payload } = data;
|
const { ...payload } = data;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue