feat(material): finishing integration of material

This commit is contained in:
riefive
2025-09-24 17:12:01 +07:00
parent 93a5abba36
commit c3c21f28e7
7 changed files with 67 additions and 44 deletions

No files matched your search

+2 -2
View File
@@ -50,9 +50,9 @@ export async function postSourceMaterial(record: any) {
}
}
export async function putSourceMaterial(id: number | string, record: any) {
export async function patchSourceMaterial(id: number | string, record: any) {
try {
const resp = await xfetch(`/api/v1/material/${id}`, 'PUT', record)
const resp = await xfetch(`/api/v1/material/${id}`, 'PATCH', record)
const result: any = {}
result.success = resp.success
result.body = (resp.body as Record<string, any>) || {}