feat(material): finishing integration of material
This commit is contained in:
No files matched your search
@@ -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>) || {}
|
||||
|
||||
Reference in New Issue
Block a user