feat(material): finishing integration of material
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { ref } from 'vue'
|
||||
|
||||
// Services
|
||||
import { postSourceDevice, putSourceDevice, removeSourceDevice } from '~/services/device.service'
|
||||
import { postSourceDevice, patchSourceDevice, removeSourceDevice } from '~/services/device.service'
|
||||
|
||||
const recId = ref<number>(0)
|
||||
const recAction = ref<string>('')
|
||||
@@ -43,7 +43,7 @@ export async function handleActionEdit(id: number | string, values: any, refresh
|
||||
let isSuccess = false
|
||||
isProcessing.value = true
|
||||
try {
|
||||
const result = await putSourceDevice(id, values)
|
||||
const result = await patchSourceDevice(id, values)
|
||||
if (result.success) {
|
||||
isFormEntryDialogOpen.value = false
|
||||
isSuccess = true
|
||||
|
||||
Reference in New Issue
Block a user