fix: update device service and handler
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { createCrudHandler } from '~/handlers/_handler'
|
||||
import { postDevice, patchDevice, removeDevice } from '~/services/device.service'
|
||||
import { genCrudHandler } from '~/handlers/_handler'
|
||||
import { create, update, remove } from '~/services/device.service'
|
||||
|
||||
export const {
|
||||
recId,
|
||||
@@ -14,8 +14,8 @@ export const {
|
||||
handleActionEdit,
|
||||
handleActionRemove,
|
||||
handleCancelForm,
|
||||
} = createCrudHandler({
|
||||
post: postDevice,
|
||||
patch: patchDevice,
|
||||
remove: removeDevice,
|
||||
} = genCrudHandler({
|
||||
create,
|
||||
update,
|
||||
remove,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user