feat: add support for removing old SEP data and refactor remove function

This commit is contained in:
riefive
2025-12-02 11:20:04 +07:00
parent 297e16eaee
commit 748004e0a1
2 changed files with 11 additions and 7 deletions
+7 -4
View File
@@ -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(