feat: add support for removing old SEP data and refactor remove function
This commit is contained in:
@@ -42,10 +42,13 @@ export function getDetail(id: number | string) {
|
||||
return base.getDetail(url, id, name)
|
||||
}
|
||||
|
||||
export function remove(payload: any) {
|
||||
const isNew = true
|
||||
const url = !isNew ? pathOld : path
|
||||
return base.removeCustom(url, payload, name)
|
||||
export function remove(id: string) {
|
||||
const url = `${path}/${id}`
|
||||
return base.removeCustom(url, {}, name)
|
||||
}
|
||||
|
||||
export function removeOld(payload: any) {
|
||||
return base.removeCustom(pathOld, payload, name)
|
||||
}
|
||||
|
||||
export function makeSepData(
|
||||
|
||||
Reference in New Issue
Block a user